語言

TreeScope 列舉

定義

包含指定 使用者介面自動化 樹中元素範圍的值。

此列舉支援其成員值的位元組合。

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

欄位

名稱 值 Description
Element 1

指定搜尋必須包含該元素本身。

Children 2

指定搜尋包含元素的直接子節點。

Descendants 4

指定搜尋包含元素的後代,包括子孫。

Subtree 7

規定搜尋必須包含搜尋的根節點及所有後代。

Parent 8

指定搜尋包含該元素的父元素。 不支援。

Ancestors 16

指定搜尋包含元素的祖先,包括父元素。 不支援。

備註

這些值用於指定搜尋元素、訂閱事件及快取時的範圍。

適用於

另請參閱