IUIAutomationTextRange::Select Method

Creates a selection in the control that corresponds to this range.

Syntax

HRESULT Select(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

If a degenerate (empty) text range is provided, the text insertion point will move to the start point of the text range.

See Also

IUIAutomationTextRange::AddToSelection