ITextRangeProvider.CompareEndpoints Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.