ITextRangeProvider.AddToSelection Method ()


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

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

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

void AddToSelection()

Exception Condition

If text provider does not support multiple, disjoint selections (that is, SupportedTextSelection must have a value of Multiple).

The text insertion point moves to the area of the new selection.

Providing a degenerate text range moves the insertion point.

.NET Framework
Available since 3.0
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Return to top