Compare Method

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

Returns a value that indicates whether the span (the Start endpoint through the End endpoint) of a text range is the same as another text range.

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

bool Compare(
	ITextRangeProvider range
)

Parameters

range
Type: System.Windows.Automation.Provider.ITextRangeProvider
A text range to compare.

Return Value

Type: System.Boolean
true if the span of both text ranges is identical; otherwise, false.

ExceptionCondition
ArgumentException

The range to compare does not come from the same text provider.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2017 Microsoft