IUIAutomationTogglePattern::CurrentToggleState Property

Retrieves the state of the UI Automation element.

Syntax

HRESULT IUIAutomationTogglePattern::get_CurrentToggleState(ToggleState *retVal);

Parameters

  • retVal
    The address of a variable that receives a value from the ToggleState enumerated type indicating the state of the element.

Return Value

Returns S_OK if successful, or an error value otherwise.