IUIAutomationTextRange::AddToSelection Method

Adds the text range 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 moves to the new selection. Providing a degenerate (empty) text range moves the insertion point to the start point of the text range.

See Also

IUIAutomationTextRange::Select