TextRangeProviderWrapperCompareEndpoints - метод

Returns a value that specifies whether two text ranges have identical endpoints.

Definition

Пространство имён: Tessa.UI.Automation.Helpers
Сборка: Tessa.UI (в Tessa.UI.dll) Версия: 4.0.4
C#
public int CompareEndpoints(
	TextPatternRangeEndpoint endpoint,
	ITextRangeProvider targetRange,
	TextPatternRangeEndpoint targetEndpoint
)

Параметры

endpoint  TextPatternRangeEndpoint
The Start or End endpoint of the caller.
targetRange  ITextRangeProvider
The target range for comparison.
targetEndpoint  TextPatternRangeEndpoint
The Start or End endpoint of the target.

Возвращаемое значение

Int32
Returns a negative value if the caller's endpoint occurs earlier in the text than the target endpoint. Returns zero if the caller's endpoint is at the same location as the target endpoint. Returns a positive value if the caller's endpoint occurs later in the text than the target endpoint.

Реализации

ITextRangeProviderCompareEndpoints(TextPatternRangeEndpoint, ITextRangeProvider, TextPatternRangeEndpoint)

Исключения

ArgumentExceptionIf targetRange is from a different text provider.

См. также