TreeScope 列舉 (uiautomationcoreapi.h)

包含值,指定 Microsoft UI 自動化樹狀結構中各種作業的範圍。

Syntax

typedef enum TreeScope {
  TreeScope_None = 0x0,
  TreeScope_Element = 0x1,
  TreeScope_Children = 0x2,
  TreeScope_Descendants = 0x4,
  TreeScope_Parent = 0x8,
  TreeScope_Ancestors = 0x10,
  TreeScope_Subtree
} ;

常數

 
TreeScope_None
值: 0x0
範圍會從搜尋中排除子樹。
TreeScope_Element
值: 0x1
範圍包含 專案本身。
TreeScope_Children
值: 0x2
範圍包含 專案的子系。
TreeScope_Descendants
值: 0x4
範圍包含 元素的子系和更遠的子系。
TreeScope_Parent
值: 0x8
範圍包含 專案的父代。
TreeScope_Ancestors
值: 0x10
範圍包含元素的父系和更遠的上階。
TreeScope_Subtree
範圍包含 專案及其所有子系。 此旗標是TreeScope_Element和TreeScope_Descendants值的組合。

需求

   
最低支援的用戶端 Windows XP [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003 [僅限桌面應用程式]
標頭 uiautomationcoreapi.h (包含 UIAutomation.h、Uiautomationcoreapi.h)

另請參閱

AddAutomationEventHandler

AddPropertyChangedEventHandler

AddPropertyChangedEventHandlerNativeArray

AddStructureChangedEventHandler

FindAll

FindAllBuildCache

FindFirst

FindFirstBuildCache

參考