Share via


IUIAutomationSelectionPattern::CachedIsSelectionRequired Property

Retrieves a cached value that specifies whether at least one item must be selected at all times.

Syntax

HRESULT IUIAutomationSelectionPattern::get_CachedIsSelectionRequired(BOOL *retVal);

Parameters

  • retVal
    The address of a variable that receives the value of the cached property: TRUE if a selection is required, otherwise FALSE.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This property can be dynamic. For example, the initial state of a control might not have any items selected by default, but after an item is selected, the control must always have at least one item selected.