IUIAutomationExpandCollapsePattern::CurrentExpandCollapseState Property
Retrieves the expanded/collapsed state of a Microsoft UI Automation element.
Syntax
HRESULT IUIAutomationExpandCollapsePattern::get_CurrentExpandCollapseState(ExpandCollapseState *retVal);
Parameters
- retVal
The address of a variable that receives a value from the ExpandCollapseState enumerated type indicating the expanded/collapsed state.
Return Value
Returns S_OK if successful, or an error value otherwise.