IToggleProvider::Toggle Method

Cycles through the toggle states of a control.

Syntax

HRESULT Toggle(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

A control must cycle through its ToggleState in this order: ToggleState.On, ToggleState.Off and, if supported, ToggleState.Indeterminate.

See Also

UI Automation Providers Overview