Udostępnij za pośrednictwem


ITextRangeProvider.CompareEndpoints Method

Definition

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

public:
 int CompareEndpoints(TextPatternRangeEndpoint endpoint, ITextRangeProvider ^ textRangeProvider, TextPatternRangeEndpoint targetEndpoint);
int CompareEndpoints(TextPatternRangeEndpoint const& endpoint, ITextRangeProvider const& textRangeProvider, TextPatternRangeEndpoint const& targetEndpoint);
public int CompareEndpoints(TextPatternRangeEndpoint endpoint, ITextRangeProvider textRangeProvider, TextPatternRangeEndpoint targetEndpoint);
function compareEndpoints(endpoint, textRangeProvider, targetEndpoint)
Public Function CompareEndpoints (endpoint As TextPatternRangeEndpoint, textRangeProvider As ITextRangeProvider, targetEndpoint As TextPatternRangeEndpoint) As Integer

Parameters

endpoint
TextPatternRangeEndpoint

The Start or End endpoint of the caller.

textRangeProvider
ITextRangeProvider

The target range for comparison.

targetEndpoint
TextPatternRangeEndpoint

The Start or End endpoint of the target.

Returns

Int32

int

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.

Applies to