17 references to CompareTo
PresentationFramework (17)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
456if (pos.CompareTo(highlightSegment.Segment.Start) >= 0) 458if (pos.CompareTo(highlightSegment.Segment.End) < 0) 480if (pos.CompareTo(highlightSegment.Segment.End) <= 0) 482if (pos.CompareTo(highlightSegment.Segment.Start) > 0)
System\Windows\Documents\SpellerStatusTable.cs (7)
133Invariant.Assert(GetRunEndPosition(runIndex).CompareTo(end) >= 0); 150if (GetRunEndPosition(runIndex).CompareTo(end) > 0) 347if (direction == LogicalDirection.Forward && position.CompareTo(run.Position) < 0 || 348direction == LogicalDirection.Backward && position.CompareTo(run.Position) <= 0) 460if (GetRunEndPosition(index).CompareTo(end) <= 0) 483else if (GetRunEndPosition(index).CompareTo(end) <= 0) 699Invariant.Assert(i == 0 || GetRunEndPosition(i - 1).CompareTo(run.Position) <= 0, "Found overlapping runs!");
System\windows\Documents\TextSelectionHighlightLayer.cs (6)
89if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.CompareTo(textSegment.End) < 0) || // 90(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.CompareTo(textSegment.End) <= 0)) 136if (textPosition.CompareTo(textSegment.Start) < 0) 141else if (textPosition.CompareTo(textSegment.End) < 0) 157if (textPosition.CompareTo(textSegment.End) > 0) 162else if (textPosition.CompareTo(textSegment.Start) > 0)