Interface ISupportsTogglePattern exposes one method and one property:
# changes state from On to Off and from Off to On
$element.Toggle();

# changes state to On ($true) or to Off ($false)
$element.Toggle($true);

# informs about the state
[System.Windows.Automation.ToggleState]$state = $element.ToggleState

Last edited Dec 27, 2013 at 3:51 PM by apetrovskiy, version 2

Comments

No comments yet.