ITextRangeProvider.Compare Method (ITextRangeProvider)

 

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

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.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.

Exception Condition
ArgumentException

If the range being compared does not come from the same text provider.

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