AddToSelection Method

ITextRangeProvider.AddToSelection Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

'Declaration
Sub AddToSelection

ExceptionCondition
InvalidOperationException

The text provider does not support multiple disjoint selections.

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

Providing a degenerate text range moves the insertion point.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft