共用方式為


IUIAutomationElement::get_CurrentItemType 方法 (uiautomationclient.h)

擷取專案所表示之 UI 專案類型的描述。

這個屬性是唯讀的。

語法

HRESULT get_CurrentItemType(
  BSTR *retVal
);

參數

retVal

傳回值

備註

這個屬性可用來取得清單、樹狀檢視或資料格中專案的相關資訊。 例如,檔案目錄檢視中的專案可能是「檔檔」或「資料夾」。

規格需求

   
最低支援的用戶端 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 元素屬性識別碼

CachedItemType

IUIAutomationElement

參考