5 implementations of CompareTo
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
107
int ITextPointer.
CompareTo
(StaticTextPointer position)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
76
int ITextPointer.
CompareTo
(StaticTextPointer position)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
78
int ITextPointer.
CompareTo
(StaticTextPointer position)
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
57
int ITextPointer.
CompareTo
(StaticTextPointer position)
src\Framework\System\Windows\Documents\TextPointer.cs (1)
2378
int ITextPointer.
CompareTo
(StaticTextPointer position)
10 references to CompareTo
PresentationFramework (10)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (4)
259
if ((highlightSegment.Segment.Start.
CompareTo
(textPosition) > 0) ||
260
((highlightSegment.Segment.Start.
CompareTo
(textPosition) == 0) && (direction == LogicalDirection.Backward)))
266
if ((highlightSegment.Segment.End.
CompareTo
(textPosition) > 0) ||
267
((highlightSegment.Segment.End.
CompareTo
(textPosition) == 0) && (direction == LogicalDirection.Backward)))
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (1)
350
if (endPosition.
CompareTo
(Cell.StaticElementEnd) >= 0)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
74
/// <see cref="ITextPointer.
CompareTo
(StaticTextPointer)"/>
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (2)
627
if (runPosition.CompareTo(position) > 0 && runPosition.
CompareTo
(GetRunEndPosition(i)) != 0)
700
Invariant.Assert(run.Position.
CompareTo
(GetRunEndPosition(i)) <= 0, "Found negative width run!");
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (2)
97
if ((direction == LogicalDirection.Forward && textSegment.Start.
CompareTo
(textPosition) <= 0 && textPosition.CompareTo(textSegment.End) < 0) || //
98
(direction == LogicalDirection.Backward && textSegment.Start.
CompareTo
(textPosition) < 0 && textPosition.CompareTo(textSegment.End) <= 0))