IUIAutomationLegacyIAccessiblePattern::GetCachedSelection Method
Retrieves the cached Microsoft Active Accessibility property that identifies the selected children of this element.
Syntax
HRESULT GetCachedSelection( IUIAutomationElementArray **pvarSelectedChildren );
Parameters
- pvarSelectedChildren
[out, retval] The address of a variable that receives a pointer to the IUIAutomationElementArray interface representing the cached collection of the selected children, as UI Automation elements.
Return Value
Returns S_OK if successful, or an error value otherwise.