IUIAutomationElement::get_CachedControlType 方法 (uiautomationclient.h)

擷取表示專案控件類型的快取值。

這個屬性是唯讀的。

語法

HRESULT get_CachedControlType(
  CONTROLTYPEID *retVal
);

參數

retVal

傳回值

備註

控件類型描述 使用者介面自動化 元素的已知互動模型,而不需要依賴當地語系化控件類型或複雜邏輯規則的組合。 除非控件支援 IUIAutomationMultipleViewPattern 介面,否則此屬性無法在運行時間變更。 例如,Win32 ListView 控制項可以根據目前的檢視,從數據格變更為清單。

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista SP2 和 Platform Update for Windows Vista、Windows XP 含 SP3 和適用於 Windows Vista 的平臺更新 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [僅限桌面應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

Automation 元素屬性標識碼

CurrentControlType

IUIAutomationElement

參考