Creates an XPath query engine for the logical tree.
public static TreeXPath XPath(this ILogical root, bool useVisualTree = false)
The root logical.
Whether to search visual tree instead.