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