IUIAutomationExpandCollapsePattern::CachedExpandCollapseState Property

Retrieves the cached expanded/collapsed state of a UI Automation element.

Syntax

HRESULT IUIAutomationExpandCollapsePattern::get_CachedExpandCollapseState(ExpandCollapseState *retVal);

Parameters

  • retVal
    The address of a variable that receives a value from the ExpandCollapseState enumerated type indicating the cached expanded/collapsed state.

Return Value

Returns S_OK if successful, or an error value otherwise.