Share via


IUIAutomationSelectionPattern2 介面 (uiautomationclient.h)

擴充 IUIAutomationSelectionPattern 介面,以提供所選專案的相關信息。

繼承

IUIAutomationSelectionPattern2 介面繼承自 IUIAutomationSelectionPattern 介面。

方法

IUIAutomationSelectionPattern2 介面具有這些方法。

 
IUIAutomationSelectionPattern2::get_CachedCurrentSelectedItem

取得代表目前選取專案的快取 IUIAutomationElement 物件。
IUIAutomationSelectionPattern2::get_CachedFirstSelectedItem

取得快取的 IUIAutomationElement 物件,代表所選專案群組中的第一個專案。
IUIAutomationSelectionPattern2::get_CachedItemCount

取得快取的整數值,指出選取的項目數目。
IUIAutomationSelectionPattern2::get_CachedLastSelectedItem

取得快取的 IUIAutomationElement 物件,代表所選專案群組中的最後一個專案。
IUIAutomationSelectionPattern2::get_CurrentCurrentSelectedItem

取得代表目前選取專案的 IUIAutomationElement 物件。
IUIAutomationSelectionPattern2::get_CurrentFirstSelectedItem

取得 IUIAutomationElement 物件,代表所選專案群組中的第一個專案。
IUIAutomationSelectionPattern2::get_CurrentItemCount

取得整數值,指出選取的項目數目。
IUIAutomationSelectionPattern2::get_CurrentLastSelectedItem

取得 IUIAutomationElement 物件,代表所選專案群組中的最後一個專案。

規格需求

需求
最低支援的用戶端 Windows 10 1709 版 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2016 [僅限傳統型應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

IUIAutomationSelectionPattern