IUIAutomationSelectionPattern::get_CurrentIsSelectionRequired 方法 (uiautomationclient.h)

指出是否必須隨時選取至少一個專案。

這個屬性是唯讀的。

語法

HRESULT get_CurrentIsSelectionRequired(
  BOOL *retVal
);

參數

retVal

傳回值

備註

這個屬性可以是動態的。 例如,控件的初始狀態可能不會預設選取任何專案,但在選取項目之後,控件必須一律至少選取一個專案。

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista sp2 和 Platform Update for Windows Vista、Windows XP with SP3 和 Platform Update for 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)

另請參閱

IUIAutomationSelectionPattern