17 references to CompareTo
PresentationFramework (17)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
464
if (pos.
CompareTo
(highlightSegment.Segment.Start) >= 0)
466
if (pos.
CompareTo
(highlightSegment.Segment.End) < 0)
488
if (pos.
CompareTo
(highlightSegment.Segment.End) <= 0)
490
if (pos.
CompareTo
(highlightSegment.Segment.Start) > 0)
System\Windows\Documents\SpellerStatusTable.cs (7)
136
Invariant.Assert(GetRunEndPosition(runIndex).
CompareTo
(end) >= 0);
153
if (GetRunEndPosition(runIndex).
CompareTo
(end) > 0)
350
if (direction == LogicalDirection.Forward && position.
CompareTo
(run.Position) < 0 ||
351
direction == LogicalDirection.Backward && position.
CompareTo
(run.Position) <= 0)
463
if (GetRunEndPosition(index).
CompareTo
(end) <= 0)
486
else if (GetRunEndPosition(index).
CompareTo
(end) <= 0)
702
Invariant.Assert(i == 0 || GetRunEndPosition(i - 1).
CompareTo
(run.Position) <= 0, "Found overlapping runs!");
System\windows\Documents\TextSelectionHighlightLayer.cs (6)
92
if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.
CompareTo
(textSegment.End) < 0) || //
93
(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.
CompareTo
(textSegment.End) <= 0))
139
if (textPosition.
CompareTo
(textSegment.Start) < 0)
144
else if (textPosition.
CompareTo
(textSegment.End) < 0)
160
if (textPosition.
CompareTo
(textSegment.End) > 0)
165
else if (textPosition.
CompareTo
(textSegment.Start) > 0)