Interface ISupportsExpandCollapsePattern supports two methods and determines the state of a control:
# expanding an element (tree node, menu item, etc)
$element.Expand();

# collapsing an element
$element.Collapse();

# getting element's state
[System.Windows.Automation.ExpandCollapseState]$state = $lement.ExpandCollapseState;

Last edited Dec 27, 2013 at 5:05 PM by apetrovskiy, version 2

Comments

No comments yet.