Share via


IUIAutomationTextRange::RemoveFromSelection Method

Removes the text range from an existing collection of selected text in a text container that supports multiple, disjoint selections.

Syntax

HRESULT RemoveFromSelection(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The text insertion point moves to the area of the removed highlight. Providing a degenerate text range also moves the insertion point.