TextPatternRange.Select Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

member Select : unit -> unit

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: