IRawElementProviderSimple Interface

Definition

提供公开 UI 元素基本信息的方法和属性。Provides methods and properties that expose basic information about a UI element.

public interface class IRawElementProviderSimple
public interface IRawElementProviderSimple
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("d6dd68d1-86fd-4332-8666-9abedea2d24c")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IRawElementProviderSimple
type IRawElementProviderSimple = interface
Public Interface IRawElementProviderSimple
Derived
Attributes

Remarks

此接口可在 UI 自动化提供程序上实现,用于简单元素(如按钮)。This interface can be implemented on UI Automation providers for simple elements such as buttons. 它还可在为已具有默认提供程序的元素提供附加属性或控件模式或覆盖现有属性或控件模式的提供程序上实现。It can also be implemented on providers that contribute additional properties or control patterns, or override existing properties or control patterns, on an element that already has a default provider.

复杂元素的提供程序必须实现 IRawElementProviderFragmentIRawElementProviderFragmentRootProviders for complex elements must implement IRawElementProviderFragment or IRawElementProviderFragmentRoot.

Properties

HostRawElementProvider

获取此元素的基本提供程序。Gets a base provider for this element.

ProviderOptions

获取一个值,该值指定 UI 自动化提供程序的特征;例如,该程序是客户端还是服务器端提供程序。Gets a value that specifies characteristics of the UI Automation provider; for example, whether it is a client-side or server-side provider.

Methods

GetPatternProvider(Int32)

检索一个对象,该对象在 UI 自动化UI Automation 元素上提供对控件模式的支持。Retrieves an object that provides support for a control pattern on a UI 自动化UI Automation element.

GetPropertyValue(Int32)

检索 UI 自动化提供程序支持的某个属性的值。Retrieves the value of a property supported by the UI Automation provider.

Applies to

See also