83 references to CompareTo
PresentationFramework (83)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
756
if ((_DependentMax == null) || ((value != null) && (value.
CompareTo
(_DependentMax) > 0)))
MS\Internal\PtsHost\TableParaClient.cs (1)
1135
if(((TextPointer)position).
CompareTo
(row.ContentEnd) == 0)
System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
118
if (endPosition == null || endPosition.
CompareTo
(textElement.ContentEnd) > 0)
System\Windows\Controls\AccessText.cs (2)
577
while (!_accessKeyLocated && navigator.
CompareTo
(TextContainer.End) < 0 )
625
while (navigator.
CompareTo
(TextContainer.End) < 0)
System\Windows\Controls\RichTextBox.cs (1)
480
firstInline.ContentStart.
CompareTo
(firstInline.ContentEnd) == 0)
System\Windows\Controls\TextBlock.cs (1)
3656
while (position.
CompareTo
((TextPointer)_complexContent.TextContainer.End) < 0)
System\Windows\Documents\FixedTextPointer.cs (2)
56
/// <see cref="TextPointer.
CompareTo
"/>
73
/// <see cref="TextPointer.
CompareTo
"/>
System\Windows\Documents\Hyperlink.cs (1)
103
while (navigator.
CompareTo
(stop) < 0)
System\Windows\Documents\List.cs (1)
191
while (textNav.
CompareTo
(this.ContentEnd) != 0)
System\Windows\Documents\NullTextNavigator.cs (1)
41
/// <see cref="TextPointer.
CompareTo
"/>
System\Windows\Documents\RangeContentEnumerator.cs (5)
78
if (_navigator.
CompareTo
(_end) >= 0)
156
if (_start == null || _start.
CompareTo
(_end) == 0)
159
if (_navigator != null && _navigator.
CompareTo
(_end) >= 0)
179
while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.
CompareTo
(_end) < 0);
201
return (_navigator.
CompareTo
(_end) < 0);
System\Windows\Documents\Span.cs (1)
104
if (start.
CompareTo
(end) > 0)
System\Windows\Documents\TextContainer.cs (5)
954
bool scopesExistingContent = startPosition.
CompareTo
(endPosition) != 0;
1225
if (startPosition.
CompareTo
(endPosition) == 0)
2233
if (startPosition.
CompareTo
(endPosition) == 0)
2306
if (startPosition.
CompareTo
(endPosition) == 0)
2624
Invariant.Assert(startPosition.
CompareTo
(endPosition) != 0, "CutContent doesn't expect empty span!");
System\windows\Documents\TextEditorTyping.cs (1)
739
LogicalDirection directionOfDelete = position.
CompareTo
(deletePosition) < 0 ? LogicalDirection.Forward : LogicalDirection.Backward;
System\Windows\Documents\TextEffectResolver.cs (2)
56
while (effectStart.
CompareTo
(endPosition) < 0)
112
&& navigator.
CompareTo
(stopHint) < 0
System\Windows\Documents\TextElement.cs (2)
402
return this.ContentStart.
CompareTo
(position) <= 0 && this.ContentEnd.
CompareTo
(position) >= 0;
System\Windows\Documents\TextElementEnumerator.cs (3)
110
if (_start == null || _start.
CompareTo
(_end) == 0)
116
if (_navigator != null && _navigator.
CompareTo
(_end) >= 0)
139
if (_navigator.
CompareTo
(_end) < 0)
System\Windows\Documents\TextPointer.cs (5)
404
/// cannot be compared with each other (by calling the method <see cref="
CompareTo
"/>).</para>
1620
if (position.
CompareTo
((TextPointer)lineRange.Start) <= 0)
2350
return
CompareTo
((TextPointer)position);
2731
if (this.
CompareTo
(position) != 0)
2762
if (this.
CompareTo
(position) != 0)
System\Windows\Documents\TextRangeEdit.cs (24)
230
if (start.
CompareTo
(end) >= 0 ||
409
if (start.
CompareTo
(end) < 0)
415
while (start.
CompareTo
(end) < 0)
425
if (parent is Span && parent.ContentEnd.
CompareTo
(end) > 0)
744
Invariant.Assert(start.
CompareTo
(end) <= 0, "expecting: start <= end");
1029
while (pointer != null && pointer.
CompareTo
(limit) <= 0)
1430
if (startPosition.
CompareTo
(endPosition) < 0)
1566
if (start.
CompareTo
(end) == 0)
1584
if (start.
CompareTo
(end) < 0)
1611
while (nextPosition.
CompareTo
(end) != 0)
1613
Invariant.Assert(direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) < 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) > 0,
1625
if (direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) > 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) < 0)
1639
if (direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) >= 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) <= 0)
1690
if (one.
CompareTo
(two) < 0)
1694
else if (one.
CompareTo
(two) > 0)
1698
Invariant.Assert(one.
CompareTo
(two) == 0, "Positions one and two must be equal now");
2081
while (pointer != null && pointer.
CompareTo
(limit) < 0)
2116
while (start != null && start.
CompareTo
(end) < 0)
2134
if (start.
CompareTo
(end) == 0)
2218
Invariant.Assert(start.Paragraph.ContentEnd.
CompareTo
(end) < 0);
2232
while (start != null && start.
CompareTo
(end) < 0)
System\Windows\Documents\TextRangeEditLists.cs (9)
59
if (sublistOfSecondParagraph.ElementEnd.
CompareTo
(secondListItem.ContentEnd) == 0)
82
if (secondParagraphOrBlockUIContainer.ElementEnd.
CompareTo
(parentBlock.ContentEnd) == 0)
130
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)
376
if (anchorPosition.
CompareTo
(movingPosition) < 0)
735
if (position.
CompareTo
(currentTable.ElementEnd) == 0)
942
if (start.
CompareTo
(end) > 0)
963
start.
CompareTo
(end) < 0
1065
if (start.
CompareTo
(end) < 0)
1086
if (cellEnd.
CompareTo
(end) < 0 &&
1970
if (startPosition.
CompareTo
(endPosition) < 0)
2001
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)
1509
if (start.
CompareTo
(end) < 0)
1561
while (start.
CompareTo
(end) < 0 && contextualProperties.MoveNext())
1608
while (start != null && start.
CompareTo
(end) < 0)
1626
if (targetType == typeof(Block) && start.
CompareTo
(end) > 0)
System\Windows\Documents\TextSchema.cs (1)
886
while (start.
CompareTo
(end) < 0)
System\Windows\Documents\TextTreeUndo.cs (1)
79
if (start.
CompareTo
(end) == 0)