Share via


ITextRangeProvider::RemoveFromSelection Method

Removes a highlighted section of text, corresponding to the caller's TextPatternRangeEndpoint_Start and TextPatternRangeEndpoint_End endpoints, from the collection of highlighted 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 will move to the area of the new selection.

Providing a degenerate text range will move the text insertion point.

See Also

UI Automation Providers Overview, ITextProvider