Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TreeScope

TreeScope enumeration

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

Syntax


enum TreeScope {  TreeScope_Element, 
  TreeScope_Children, 
  TreeScope_Descendants, 
  TreeScope_Parent, 
  TreeScope_Ancestors, 
  TreeScope_Subtree 

};

Constants

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)

See also

Reference
AddAutomationEventHandler
AddPropertyChangedEventHandler
AddPropertyChangedEventHandlerNativeArray
AddStructureChangedEventHandler
FindAll
FindAllBuildCache
FindFirst
FindFirstBuildCache

 

 

Community Additions

ADD
Show:
© 2015 Microsoft