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.
Assembly: System.Windows (in System.Windows.dll)
Parameters
- range
- Type: System.Windows.Automation.Provider.ITextRangeProvider
A text range to compare.
Return Value
Type: System.Booleantrue if the span of both text ranges is identical; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentException | The range to compare does not come from the same text provider. |
Show: