IToggleProvider 接口

定义

公开一些方法和属性,以支持 UI 自动化客户端访问可遍历一组状态并可在设置后维持状态的控件。Exposes methods and properties to support UI Automation client access to controls that can cycle through a set of states and maintain a state once set.

public interface class IToggleProvider
public interface IToggleProvider
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("56d00bd0-c4f4-433c-a836-1a52a57e0892")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IToggleProvider
type IToggleProvider = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("56d00bd0-c4f4-433c-a836-1a52a57e0892")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IToggleProvider = interface
Public Interface IToggleProvider
派生
属性

注解

在必须支持控件模式的 UI 自动化提供程序上实现 TogglePatternImplemented on a UI Automation provider that must support the TogglePattern control pattern.

属性

ToggleState

获取控件的切换状态。Gets the toggle state of the control.

方法

Toggle()

循环通过控件的切换状态。Cycles through the toggle states of a control.

适用于

另请参阅