语言

TreeScope 枚举

定义

包含指定UI 自动化树中元素范围的值。

此枚举支持其成员值的按位组合。

public enum class TreeScope
[System.Flags]
public enum TreeScope
[<System.Flags>]
type TreeScope = 
Public Enum TreeScope
继承
TreeScope
特性

字段

名称 值 说明
Element 1

指定搜索包括元素本身。

Children 2

指定搜索包括元素的直接子级。

Descendants 4

指定搜索包括元素的后代,包括子级。

Subtree 7

指定搜索包括搜索的根和所有后代。

Parent 8

指定搜索包括元素的父级。 不支持。

Ancestors 16

指定搜索包括元素的上级,包括父级。 不支持。

注解

这些值用于指定搜索元素、订阅事件和缓存的作用域。

适用于

另请参阅