IRawElementProviderSimple 介面

定義

提供公開 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
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("d6dd68d1-86fd-4332-8666-9abedea2d24c")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IRawElementProviderSimple = interface
Public Interface IRawElementProviderSimple
衍生
屬性

備註

這個介面可針對簡單的元素(例如按鈕),在使用者介面自動化提供者上執行。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.

屬性

HostRawElementProvider

取得這個項目的基底提供者。Gets a base provider for this element.

ProviderOptions

取得指定使用者介面自動化提供者特性的值,例如,它是用戶端或伺服器端提供者。Gets a value that specifies characteristics of the UI Automation provider; for example, whether it is a client-side or server-side provider.

方法

GetPatternProvider(Int32)

抓取物件,該物件提供使用者介面自動化專案的控制項模式支援。Retrieves an object that provides support for a control pattern on a UI Automation element.

GetPropertyValue(Int32)

擷取使用者介面自動化提供者支援的屬性值。Retrieves the value of a property supported by the UI Automation provider.

適用於