Share via


ITextRangeProvider::AddToSelection Method

Adds to the collection of highlighted text in a text container that supports multiple, disjoint selections.

Syntax

HRESULT AddToSelection(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