TextPatternRange::Select Method ()

 

Highlights text in the text control corresponding to the text range Start and End endpoints.

Namespace:   System.Windows.Automation.Text
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

public:
void Select()

Exception Condition
InvalidOperationException

Occurs when text selection is not supported by the text control.

If a degenerate text range is provided, the text insertion point will move to the Start endpoint of the text range.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0
Return to top
Show: