public int CompareEndpoints(TextPatternRangeEndpoint endpoint, string targetRangePath, TextPatternRangeEndpoint targetEndpoint) { ITextRangeProvider target = parent.GetTextRangeFromPath(targetRangePath).Provider; return(provider.CompareEndpoints(endpoint, target, targetEndpoint)); }