IAutomationAdapter<T> 接口

定义

定义对象自动执行所需的核心属性。 所有愿意提供自动化支持的对象都必须提供此接口的实现 (这通常是通过实现) 来实现的 IAutomatedElement 。 模板化接口,还包括对 IAutomationAdapter 要自动执行的对象的引用。

generic <typename T>
 where T : classpublic interface class IAutomationAdapter : Microsoft::VisualStudio::Text::Utilities::Automation::IAutomationAdapter
public interface IAutomationAdapter<T> : Microsoft.VisualStudio.Text.Utilities.Automation.IAutomationAdapter where T : class
type IAutomationAdapter<'T (requires 'T : null)> = interface
    interface IAutomationAdapter
Public Interface IAutomationAdapter(Of T)
Implements IAutomationAdapter

类型参数

T
实现

属性

AutomationPeer

返回 AutomationPeer 要自动化的元素的。 AutomationPeerWPF UIAutomation 使用来访问自动元素的属性。

(继承自 IAutomationAdapter)
AutomationProperties

返回 AutomationProperties 与自动元素关联的。 AutomationProperties包含有关正在自动执行的元素的核心属性。

(继承自 IAutomationAdapter)
AutomationProvider

IRawElementProviderSimple为自动元素返回相应的代理。 使用 Microsoft Active Accessibility 标准访问通过代理的自动元素的客户端 IRawElementProviderSimple

(继承自 IAutomationAdapter)
CoreElement

返回正在自动执行的元素。

方法

GetAutomationProviderForChild(AutomationPeer)

返回 IRawElementProviderSimple 此自动化的子元素的。

(继承自 IAutomationAdapter)

适用于