公开代表 UI 项的 UI 自动化元素的方法和属性。
继承
该IUIAutomationElement从接口继承的IUnknown接口。IUIAutomationElement还具有以下类型的成员:
方法
该IUIAutomationElement接口有这些方法。
| IUIAutomationElement::BuildUpdatedCache 检索具有更新缓存的新 UI 自动化元素。 |
| IUIAutomationElement::FindAll 返回满足指定条件的所有 UI 自动化元素。 |
| IUIAutomationElement::FindAllBuildCache 返回满足指定条件的所有 UI 自动化元素,预取请求的属性和控件模式,并将预取的项存储在缓存中。 |
| IUIAutomationElement::FindFirst 检索与指定条件匹配的第一个子元素或后代元素。 |
| IUIAutomationElement::FindFirstBuildCache 检索与指定条件匹配的第一个子元素或后代元素,预取请求的属性和控件模式,并将预取的项存储在缓存中。 |
| IUIAutomationElement::get_CachedAcceleratorKey 检索元素的缓存加速键。 |
| IUIAutomationElement::get_CachedAccessKey 检索元素的缓存访问键字符。 |
| IUIAutomationElement::get_CachedAriaProperties 检索元素的缓存的可访问富 Internet 应用程序 (ARIA) 属性。 |
| IUIAutomationElement::get_CachedAriaRole 检索元素的缓存可访问富 Internet 应用程序 (ARIA) 角色。 |
| IUIAutomationElement::get_CachedAutomationId 检索元素的缓存 Microsoft UI 自动化标识符。 |
| IUIAutomationElement::get_CachedBoundingRectangle 检索完全包围元素的矩形的缓存坐标。 |
| IUIAutomationElement::get_CachedClassName 检索元素的缓存类名。 |
| IUIAutomationElement::get_CachedControllerFor 检索此元素用作控制器的 UI 自动化元素的缓存数组。 |
| IUIAutomationElement::get_CachedControlType 检索指示元素控件类型的缓存值。 |
| IUIAutomationElement::get_CachedCulture 检索指示与元素关联的区域性的缓存值。 |
| IUIAutomationElement::get_CachedDescribedBy 检索描述此元素的元素的缓存数组。 |
| IUIAutomationElement::get_CachedFlowsTo 检索元素的缓存数组,这些元素指示当前元素之后的阅读顺序。 |
| IUIAutomationElement::get_CachedFrameworkId 检索与元素关联的底层 UI 框架的缓存名称。 |
| IUIAutomationElement::get_CachedHasKeyboardFocus 指示元素是否具有键盘焦点的缓存值。 |
| IUIAutomationElement::get_CachedHelpText 检索元素的缓存帮助文本。 |
| IUIAutomationElement::get_CachedIsContentElement 指示元素是否为内容元素的缓存值。 |
| IUIAutomationElement::get_CachedIsControlElement 检索指示元素是否为控制元素的缓存值。 |
| IUIAutomationElement::get_CachedIsDataValidForForm 检索一个缓存值,该值指示元素是否包含表单的有效数据。 |
| IUIAutomationElement::get_CachedIsEnabled 检索指示元素是否已启用的缓存值。 |
| IUIAutomationElement::get_CachedIsKeyboardFocusable 检索指示元素是否可以接受键盘焦点的缓存值。 |
| IUIAutomationElement::get_CachedIsOffscreen 检索指示元素是否在屏幕外的缓存值。 |
| IUIAutomationElement::get_CachedIsPassword 检索指示元素是否包含伪装密码的缓存值。 |
| IUIAutomationElement::get_CachedIsRequiredForForm 检索指示是否需要在表单上填写元素的缓存值。 |
| IUIAutomationElement::get_CachedItemStatus 检索元素内项目状态的缓存描述。 |
| IUIAutomationElement::get_CachedItemType 检索描述元素表示的项目类型的缓存字符串。 |
| IUIAutomationElement::get_CachedLabeledBy 检索包含此元素的文本标签的缓存元素。 |
| IUIAutomationElement::get_CachedLocalizedControlType 检索元素控件类型的缓存本地化描述。 |
| IUIAutomationElement::get_CachedName 检索元素的缓存名称。 |
| IUIAutomationElement::get_CachedNativeWindowHandle 检索元素的缓存窗口句柄。 |
| IUIAutomationElement::get_CachedOrientation 检索指示元素方向的缓存值。 |
| IUIAutomationElement::get_CachedProcessId 检索承载元素的进程的缓存 ID。 |
| IUIAutomationElement::get_CachedProviderDescription 检索此元素的提供程序的缓存描述。 |
| IUIAutomationElement::get_CurrentAcceleratorKey 检索元素的快捷键。 |
| IUIAutomationElement::get_CurrentAccessKey 检索元素的访问键字符。 |
| IUIAutomationElement::get_CurrentAriaProperties 检索元素的可访问富 Internet 应用程序 (ARIA) 属性。 |
| IUIAutomationElement::get_CurrentAriaRole 检索元素的可访问富 Internet 应用程序 (ARIA) 角色。 |
| IUIAutomationElement::get_CurrentAutomationId 检索元素的 Microsoft UI 自动化标识符。 |
| IUIAutomationElement::get_CurrentBoundingRectangle 检索完全包围元素的矩形的坐标。 |
| IUIAutomationElement::get_CurrentClassName 检索元素的类名。 |
| IUIAutomationElement::get_CurrentControllerFor 检索此元素作为控制器的元素数组。 |
| IUIAutomationElement::get_CurrentControlType 检索元素的控件类型。 |
| IUIAutomationElement::get_CurrentCulture 检索元素的区域性标识符。 |
| IUIAutomationElement::get_CurrentDescribedBy 检索描述此元素的元素数组。 |
| IUIAutomationElement::get_CurrentFlowsTo 检索指示当前元素之后的读取顺序的元素数组。 |
| IUIAutomationElement::get_CurrentFrameworkId 检索底层 UI 框架的名称。 |
| IUIAutomationElement::get_CurrentHasKeyboardFocus 指示元素是否具有键盘焦点。 |
| IUIAutomationElement::get_CurrentHelpText 检索元素的帮助文本。 |
| IUIAutomationElement::get_CurrentIsContentElement 指示元素是否为内容元素。 |
| IUIAutomationElement::get_CurrentIsControlElement 指示元素是否为控制元素。 |
| IUIAutomationElement::get_CurrentIsDataValidForForm 指示元素是否包含表单的有效数据。 |
| IUIAutomationElement::get_CurrentIsEnabled 指示元素是否已启用。 |
| IUIAutomationElement::get_CurrentIsKeyboardFocusable 指示元素是否可以接受键盘焦点。 |
| IUIAutomationElement::get_CurrentIsOffscreen 指示元素是否离屏。 |
| IUIAutomationElement::get_CurrentIsPassword 指示元素是否包含伪装密码。 |
| IUIAutomationElement::get_CurrentIsRequiredForForm 指示是否需要在表单上填写元素。 |
| IUIAutomationElement::get_CurrentItemStatus 检索元素中项目状态的描述。 |
| IUIAutomationElement::get_CurrentItemType 检索元素表示的 UI 项目类型的描述。 |
| IUIAutomationElement::get_CurrentLabeledBy 检索包含此元素的文本标签的元素。 |
| IUIAutomationElement::get_CurrentLocalizedControlType 检索元素控件类型的本地化描述。 |
| IUIAutomationElement::get_CurrentName 检索元素的名称。 |
| IUIAutomationElement::get_CurrentNativeWindowHandle 检索元素的窗口句柄。 |
| IUIAutomationElement::get_CurrentOrientation 检索指示元素方向的值。 |
| IUIAutomationElement::get_CurrentProcessId 检索承载元素的进程的标识符。 |
| IUIAutomationElement::get_CurrentProviderDescription 检索此元素的提供程序的描述。 |
| IUIAutomationElement::GetCachedChildren 检索此 UI 自动化元素的缓存子元素。 |
| IUIAutomationElement::GetCachedParent 从缓存中检索此 UI 自动化元素的父级。 |
| IUIAutomationElement::GetCachedPattern 从缓存中检索此 UI 自动化元素的指定控件模式的 IUnknown 接口。 |
| IUIAutomationElement::GetCachedPatternAs 从此 UI 自动化元素的缓存中检索指定模式的控件模式接口。 |
| IUIAutomationElement::GetCachedPropertyValue 从此 UI 自动化元素的缓存中检索属性值。 |
| IUIAutomationElement::GetCachedPropertyValueEx 从此 UI 自动化元素的缓存中检索属性值,可选择忽略任何默认值。 |
| IUIAutomationElement::GetClickablePoint 检索元素上可单击的点。 |
| IUIAutomationElement::GetCurrentPattern 检索此 UI 自动化元素上指定控件模式的 IUnknown 接口。 |
| IUIAutomationElement::GetCurrentPatternAs 检索此 UI 自动化元素上指定模式的控件模式接口。 |
| IUIAutomationElement::GetCurrentPropertyValue 检索此 UI 自动化元素的属性的当前值。 |
| IUIAutomationElement::GetCurrentPropertyValueEx 检索此 UI 自动化元素的属性值,可选择忽略任何默认值。 |
| IUIAutomationElement::GetRuntimeId 检索分配给 UI 元素的唯一标识符。 |
| IUIAutomationElement::SetFocus 将键盘焦点设置到此 UI 自动化元素。 |
要求
| 最低支持客户端 | Windows 7、Windows Vista SP2 和 Windows Vista 平台更新、Windows XP SP3 和 Windows Vista 平台更新 [仅限桌面应用程序] |
| 最低支持服务器 | Windows Server 2008 R2、Windows Server 2008 SP2 和 Windows Server 2008 平台更新、Windows Server 2003 SP2 和 Windows Server 2008 平台更新 [仅限桌面应用] |
| 目标平台 | 视窗 |
| 标题 | uiautomationclient.h(包括 UIAutomation.h) |
