TreeScope Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: