Share via


ISelectionItemProvider::RemoveFromSelection Method

Removes the current element from the collection of selected items.

Syntax

HRESULT RemoveFromSelection(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

Send an element-removed-from-selection event as appropriate. Each event is identified by a GUID listed at GUIDs.

Note  This rule does not depend on whether the container allows single or multiple selection, or on what method was used to change the selection. Only the result matters.

See Also

UI Automation Providers Overview