83 references to CompareTo
PresentationFramework (83)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
764
if ((_DependentMax == null) || ((value != null) && (value.
CompareTo
(_DependentMax) > 0)))
MS\Internal\PtsHost\TableParaClient.cs (1)
1141
if(((TextPointer)position).
CompareTo
(row.ContentEnd) == 0)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
122
if (endPosition == null || endPosition.
CompareTo
(textElement.ContentEnd) > 0)
System\Windows\Controls\AccessText.cs (2)
577
while (!_accessKeyLocated && navigator.
CompareTo
(TextContainer.End) < 0 )
623
while (navigator.
CompareTo
(TextContainer.End) < 0)
System\Windows\Controls\RichTextBox.cs (1)
482
firstInline.ContentStart.
CompareTo
(firstInline.ContentEnd) == 0)
System\Windows\Controls\TextBlock.cs (1)
3666
while (position.
CompareTo
((TextPointer)_complexContent.TextContainer.End) < 0)
System\Windows\Documents\FixedTextPointer.cs (2)
63
/// <see cref="TextPointer.
CompareTo
"/>
80
/// <see cref="TextPointer.
CompareTo
"/>
System\Windows\Documents\Hyperlink.cs (1)
109
while (navigator.
CompareTo
(stop) < 0)
System\Windows\Documents\List.cs (1)
191
while (textNav.
CompareTo
(this.ContentEnd) != 0)
System\Windows\Documents\NullTextNavigator.cs (1)
46
/// <see cref="TextPointer.
CompareTo
"/>
System\Windows\Documents\RangeContentEnumerator.cs (5)
88
if (_navigator.
CompareTo
(_end) >= 0)
166
if (_start == null || _start.
CompareTo
(_end) == 0)
169
if (_navigator != null && _navigator.
CompareTo
(_end) >= 0)
189
while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.
CompareTo
(_end) < 0);
211
return (_navigator.
CompareTo
(_end) < 0);
System\Windows\Documents\Span.cs (1)
105
if (start.
CompareTo
(end) > 0)
System\Windows\Documents\TextContainer.cs (5)
959
bool scopesExistingContent = startPosition.
CompareTo
(endPosition) != 0;
1230
if (startPosition.
CompareTo
(endPosition) == 0)
2238
if (startPosition.
CompareTo
(endPosition) == 0)
2311
if (startPosition.
CompareTo
(endPosition) == 0)
2629
Invariant.Assert(startPosition.
CompareTo
(endPosition) != 0, "CutContent doesn't expect empty span!");
System\windows\Documents\TextEditorTyping.cs (1)
748
LogicalDirection directionOfDelete = position.
CompareTo
(deletePosition) < 0 ? LogicalDirection.Forward : LogicalDirection.Backward;
System\Windows\Documents\TextEffectResolver.cs (2)
60
while (effectStart.
CompareTo
(endPosition) < 0)
116
&& navigator.
CompareTo
(stopHint) < 0
System\Windows\Documents\TextElement.cs (2)
417
return this.ContentStart.
CompareTo
(position) <= 0 && this.ContentEnd.
CompareTo
(position) >= 0;
System\Windows\Documents\TextElementEnumerator.cs (3)
120
if (_start == null || _start.
CompareTo
(_end) == 0)
126
if (_navigator != null && _navigator.
CompareTo
(_end) >= 0)
149
if (_navigator.
CompareTo
(_end) < 0)
System\Windows\Documents\TextPointer.cs (5)
409
/// cannot be compared with each other (by calling the method <see cref="
CompareTo
"/>).</para>
1625
if (position.
CompareTo
((TextPointer)lineRange.Start) <= 0)
2355
return
CompareTo
((TextPointer)position);
2736
if (this.
CompareTo
(position) != 0)
2767
if (this.
CompareTo
(position) != 0)
System\Windows\Documents\TextRangeEdit.cs (24)
232
if (start.
CompareTo
(end) >= 0 ||
411
if (start.
CompareTo
(end) < 0)
417
while (start.
CompareTo
(end) < 0)
427
if (parent is Span && parent.ContentEnd.
CompareTo
(end) > 0)
746
Invariant.Assert(start.
CompareTo
(end) <= 0, "expecting: start <= end");
1031
while (pointer != null && pointer.
CompareTo
(limit) <= 0)
1432
if (startPosition.
CompareTo
(endPosition) < 0)
1568
if (start.
CompareTo
(end) == 0)
1586
if (start.
CompareTo
(end) < 0)
1613
while (nextPosition.
CompareTo
(end) != 0)
1615
Invariant.Assert(direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) < 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) > 0,
1627
if (direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) > 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) < 0)
1641
if (direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) >= 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) <= 0)
1692
if (one.
CompareTo
(two) < 0)
1696
else if (one.
CompareTo
(two) > 0)
1700
Invariant.Assert(one.
CompareTo
(two) == 0, "Positions one and two must be equal now");
2083
while (pointer != null && pointer.
CompareTo
(limit) < 0)
2118
while (start != null && start.
CompareTo
(end) < 0)
2136
if (start.
CompareTo
(end) == 0)
2220
Invariant.Assert(start.Paragraph.ContentEnd.
CompareTo
(end) < 0);
2234
while (start != null && start.
CompareTo
(end) < 0)
System\Windows\Documents\TextRangeEditLists.cs (9)
61
if (sublistOfSecondParagraph.ElementEnd.
CompareTo
(secondListItem.ContentEnd) == 0)
84
if (secondParagraphOrBlockUIContainer.ElementEnd.
CompareTo
(parentBlock.ContentEnd) == 0)
132
Invariant.Assert(firstParagraphOrBlockUIContainer.ElementEnd.
CompareTo
(secondParagraphOrBlockUIContainer.ElementStart) == 0);
377
if (listItem.ContentStart.
CompareTo
(listItem.ContentEnd) == 0)
513
if (outerListItem.ContentStart.
CompareTo
(firstListItem.ElementStart) == 0)
524
if (outerListItemEnd.
CompareTo
(lastListItem.ElementEnd) == 0)
563
if (listItem.ContentStart.
CompareTo
(listItem.ContentEnd) == 0)
649
if (position.
CompareTo
(startOfSecondParagraph) == 0)
703
endListItem.List.ElementEnd.
CompareTo
(startListItem.List.ElementEnd) < 0)
System\Windows\Documents\TextRangeEditTables.cs (8)
378
if (anchorPosition.
CompareTo
(movingPosition) < 0)
733
if (position.
CompareTo
(currentTable.ElementEnd) == 0)
940
if (start.
CompareTo
(end) > 0)
961
start.
CompareTo
(end) < 0
1063
if (start.
CompareTo
(end) < 0)
1084
if (cellEnd.
CompareTo
(end) < 0 &&
1968
if (startPosition.
CompareTo
(endPosition) < 0)
1999
Invariant.Assert(start.
CompareTo
(end) < 0, "The end must be in the beginning of the next cell (or at row end).");
System\Windows\Documents\TextRangeSerialization.cs (4)
1515
if (start.
CompareTo
(end) < 0)
1567
while (start.
CompareTo
(end) < 0 && contextualProperties.MoveNext())
1614
while (start != null && start.
CompareTo
(end) < 0)
1632
if (targetType == typeof(Block) && start.
CompareTo
(end) > 0)
System\Windows\Documents\TextSchema.cs (1)
892
while (start.
CompareTo
(end) < 0)
System\Windows\Documents\TextTreeUndo.cs (1)
77
if (start.
CompareTo
(end) == 0)