RemoveFromSelection Method

ITextRangeProvider.RemoveFromSelection 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. ]

From the collection of highlighted text in a text container that supports multiple disjoint selections, removes a highlighted section of text that corresponds to the caller's Start and End endpoints.

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

void RemoveFromSelection()

ExceptionCondition
InvalidOperationException

The text provider does not support multiple disjoint.

The text insertion point moves to the area of the removed highlight.

Providing a degenerate text range will move the insertion point.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft