TreeScope Enumerated Type

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

Syntax

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

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.

Enumerated Type Information

Header uiautomationcoreapi.h
Minimum operating systems Windows XP 1.0

See Also

IUIAutomation::AddAutomationEventHandler, IUIAutomation::AddPropertyChangedEventHandler, IUIAutomation::AddPropertyChangedEventHandlerNativeArray, IUIAutomation::AddStructureChangedEventHandler, IUIAutomationElement::FindAll, IUIAutomationElement::FindAllBuildCache, IUIAutomationElement::FindFirst, IUIAutomationElement::FindFirstBuildCache