TreeScope Enumeration
TOC
Collapse the table of content
Expand the table of content

TreeScope Enumeration

 

Contains values that specify the scope of elements within the UI Automation tree.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:   System.Windows.Automation
Assembly:  UIAutomationTypes (in UIAutomationTypes.dll)

[FlagsAttribute]
public enum TreeScope

Member nameDescription
Ancestors

Specifies that the search include the element's ancestors, including the parent. Not supported.

Children

Specifies that the search include the element's immediate children.

Descendants

Specifies that the search include the element's descendants, including children.

Element

Specifies that the search include the element itself.

Parent

Specifies that the search include the element's parent. Not supported.

Subtree

Specifies that the search include the root of the search and all descendants.

These values are used to specify the scope in searching for elements, subscribing to events, and caching.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft