IUIAutomationElement::get_CurrentIsContentElement 方法 (uiautomationclient.h)

指示元素是否为内容元素。

此属性为只读。

语法

HRESULT get_CurrentIsContentElement(
  BOOL *retVal
);

参数

retVal

返回值

备注

content 元素包含呈现给用户的数据。 内容元素的示例包括列表框中的项或对话框中的按钮。 非内容元素(也称为外围元素)通常用于操作复合控件中的内容;例如,下拉控件上的按钮。

要求

   
最低受支持的客户端 Windows 7、带 SP2 的 Windows Vista 和适用于 Windows Vista 的平台更新、带 SP3 的 Windows XP 和适用于 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 元素属性 ID

CachedIsContentElement

CurrentIsControlElement

IUIAutomationElement

引用