TreeScope Enumeration

Contains values that specify the scope of various operations in the Microsoft UI Automation tree.

Syntax

typedef enum TreeScope {
  TreeScope_None,
  TreeScope_Element,
  TreeScope_Children,
  TreeScope_Descendants,
  TreeScope_Parent,
  TreeScope_Ancestors,
  TreeScope_Subtree
} ;

Constants

TreeScope_None The scope excludes the subtree from the search.
TreeScope_Element The scope includes the element itself.
TreeScope_Children The scope includes children of the element.
TreeScope_Descendants The scope includes children and more distant descendants of the element.
TreeScope_Parent The scope includes the parent of the element.
TreeScope_Ancestors The scope includes the parent and more distant ancestors of the element.
TreeScope_Subtree The scope includes the element and all its descendants. This flag is a combination of the TreeScope_Element and TreeScope_Descendants values.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header uiautomationclient.h (include UIAutomation.h, Uiautomationcoreapi.h)

See Also

AddAutomationEventHandler

AddPropertyChangedEventHandler

AddPropertyChangedEventHandlerNativeArray

AddStructureChangedEventHandler

FindAll

FindAllBuildCache

FindFirst

FindFirstBuildCache

Reference