17 references to CompareTo
PresentationFramework (17)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
457
if (pos.
CompareTo
(highlightSegment.Segment.Start) >= 0)
459
if (pos.
CompareTo
(highlightSegment.Segment.End) < 0)
481
if (pos.
CompareTo
(highlightSegment.Segment.End) <= 0)
483
if (pos.
CompareTo
(highlightSegment.Segment.Start) > 0)
System\Windows\Documents\SpellerStatusTable.cs (7)
134
Invariant.Assert(GetRunEndPosition(runIndex).
CompareTo
(end) >= 0);
151
if (GetRunEndPosition(runIndex).
CompareTo
(end) > 0)
348
if (direction == LogicalDirection.Forward && position.
CompareTo
(run.Position) < 0 ||
349
direction == LogicalDirection.Backward && position.
CompareTo
(run.Position) <= 0)
461
if (GetRunEndPosition(index).
CompareTo
(end) <= 0)
484
else if (GetRunEndPosition(index).
CompareTo
(end) <= 0)
700
Invariant.Assert(i == 0 || GetRunEndPosition(i - 1).
CompareTo
(run.Position) <= 0, "Found overlapping runs!");
System\windows\Documents\TextSelectionHighlightLayer.cs (6)
90
if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.
CompareTo
(textSegment.End) < 0) || //
91
(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.
CompareTo
(textSegment.End) <= 0))
137
if (textPosition.
CompareTo
(textSegment.Start) < 0)
142
else if (textPosition.
CompareTo
(textSegment.End) < 0)
158
if (textPosition.
CompareTo
(textSegment.End) > 0)
163
else if (textPosition.
CompareTo
(textSegment.Start) > 0)