81 references to CompareTo
PresentationFramework (81)
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (1)
785
if ((_DependentMax == null) || ((value != null) && (value.
CompareTo
(_DependentMax) > 0)))
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (1)
1228
if(((TextPointer)position).
CompareTo
(row.ContentEnd) == 0)
src\Framework\System\Windows\Automation\Peers\TextElementAutomationPeer.cs (1)
136
if (endPosition == null || endPosition.
CompareTo
(textElement.ContentEnd) > 0)
src\Framework\System\Windows\Controls\AccessText.cs (2)
577
while (!_accessKeyLocated && navigator.
CompareTo
(TextContainer.End) < 0 )
624
while (navigator.
CompareTo
(TextContainer.End) < 0)
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
493
firstInline.ContentStart.
CompareTo
(firstInline.ContentEnd) == 0)
src\Framework\System\Windows\Controls\TextBlock.cs (1)
3655
while (position.
CompareTo
((TextPointer)_complexContent.TextContainer.End) < 0)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (2)
69
/// <see cref="TextPointer.
CompareTo
"/>
86
/// <see cref="TextPointer.
CompareTo
"/>
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
111
while (navigator.
CompareTo
(stop) < 0)
src\Framework\System\Windows\Documents\List.cs (1)
201
while (textNav.
CompareTo
(this.ContentEnd) != 0)
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
48
/// <see cref="TextPointer.
CompareTo
"/>
src\Framework\System\Windows\Documents\RangeContentEnumerator.cs (5)
96
if (_navigator.
CompareTo
(_end) >= 0)
174
if (_start == null || _start.
CompareTo
(_end) == 0)
177
if (_navigator != null && _navigator.
CompareTo
(_end) >= 0)
197
while (_navigator.GetPointerContext(LogicalDirection.Forward) == TextPointerContext.Text && _navigator.
CompareTo
(_end) < 0);
219
return (_navigator.
CompareTo
(_end) < 0);
src\Framework\System\Windows\Documents\Span.cs (1)
111
if (start.
CompareTo
(end) > 0)
src\Framework\System\Windows\Documents\TextContainer.cs (5)
974
bool scopesExistingContent = startPosition.
CompareTo
(endPosition) != 0;
1245
if (startPosition.
CompareTo
(endPosition) == 0)
2253
if (startPosition.
CompareTo
(endPosition) == 0)
2326
if (startPosition.
CompareTo
(endPosition) == 0)
2644
Invariant.Assert(startPosition.
CompareTo
(endPosition) != 0, "CutContent doesn't expect empty span!");
src\Framework\System\windows\Documents\TextEditorTyping.cs (1)
764
LogicalDirection directionOfDelete = position.
CompareTo
(deletePosition) < 0 ? LogicalDirection.Forward : LogicalDirection.Backward;
src\Framework\System\Windows\Documents\TextEffectResolver.cs (2)
69
while (effectStart.
CompareTo
(endPosition) < 0)
125
&& navigator.
CompareTo
(stopHint) < 0
src\Framework\System\Windows\Documents\TextElement.cs (2)
422
return this.ContentStart.
CompareTo
(position) <= 0 && this.ContentEnd.
CompareTo
(position) >= 0;
src\Framework\System\Windows\Documents\TextElementEnumerator.cs (3)
126
if (_start == null || _start.
CompareTo
(_end) == 0)
132
if (_navigator != null && _navigator.
CompareTo
(_end) >= 0)
155
if (_navigator.
CompareTo
(_end) < 0)
src\Framework\System\Windows\Documents\TextPointer.cs (3)
417
/// cannot be compared with each other (by calling the method <see cref="
CompareTo
"/>).</para>
1639
if (position.
CompareTo
((TextPointer)lineRange.Start) <= 0)
2375
return
CompareTo
((TextPointer)position);
src\Framework\System\Windows\Documents\TextRangeEdit.cs (24)
234
if (start.
CompareTo
(end) >= 0 ||
413
if (start.
CompareTo
(end) < 0)
419
while (start.
CompareTo
(end) < 0)
429
if (parent is Span && parent.ContentEnd.
CompareTo
(end) > 0)
748
Invariant.Assert(start.
CompareTo
(end) <= 0, "expecting: start <= end");
1033
while (pointer != null && pointer.
CompareTo
(limit) <= 0)
1434
if (startPosition.
CompareTo
(endPosition) < 0)
1570
if (start.
CompareTo
(end) == 0)
1588
if (start.
CompareTo
(end) < 0)
1615
while (nextPosition.
CompareTo
(end) != 0)
1617
Invariant.Assert(direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) < 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) > 0,
1629
if (direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) > 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) < 0)
1643
if (direction == LogicalDirection.Forward && nextPosition.
CompareTo
(end) >= 0 || direction == LogicalDirection.Backward && nextPosition.
CompareTo
(end) <= 0)
1694
if (one.
CompareTo
(two) < 0)
1698
else if (one.
CompareTo
(two) > 0)
1702
Invariant.Assert(one.
CompareTo
(two) == 0, "Positions one and two must be equal now");
2085
while (pointer != null && pointer.
CompareTo
(limit) < 0)
2120
while (start != null && start.
CompareTo
(end) < 0)
2138
if (start.
CompareTo
(end) == 0)
2222
Invariant.Assert(start.Paragraph.ContentEnd.
CompareTo
(end) < 0);
2236
while (start != null && start.
CompareTo
(end) < 0)
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (9)
63
if (sublistOfSecondParagraph.ElementEnd.
CompareTo
(secondListItem.ContentEnd) == 0)
86
if (secondParagraphOrBlockUIContainer.ElementEnd.
CompareTo
(parentBlock.ContentEnd) == 0)
134
Invariant.Assert(firstParagraphOrBlockUIContainer.ElementEnd.
CompareTo
(secondParagraphOrBlockUIContainer.ElementStart) == 0);
379
if (listItem.ContentStart.
CompareTo
(listItem.ContentEnd) == 0)
515
if (outerListItem.ContentStart.
CompareTo
(firstListItem.ElementStart) == 0)
526
if (outerListItemEnd.
CompareTo
(lastListItem.ElementEnd) == 0)
565
if (listItem.ContentStart.
CompareTo
(listItem.ContentEnd) == 0)
651
if (position.
CompareTo
(startOfSecondParagraph) == 0)
705
endListItem.List.ElementEnd.
CompareTo
(startListItem.List.ElementEnd) < 0)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (8)
381
if (anchorPosition.
CompareTo
(movingPosition) < 0)
736
if (position.
CompareTo
(currentTable.ElementEnd) == 0)
943
if (start.
CompareTo
(end) > 0)
964
start.
CompareTo
(end) < 0
1066
if (start.
CompareTo
(end) < 0)
1087
if (cellEnd.
CompareTo
(end) < 0 &&
1971
if (startPosition.
CompareTo
(endPosition) < 0)
2002
Invariant.Assert(start.
CompareTo
(end) < 0, "The end must be in the beginning of the next cell (or at row end).");
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (4)
1539
if (start.
CompareTo
(end) < 0)
1587
while (start.
CompareTo
(end) < 0 && contextualProperties.MoveNext())
1634
while (start != null && start.
CompareTo
(end) < 0)
1652
if (targetType == typeof(Block) && start.
CompareTo
(end) > 0)
src\Framework\System\Windows\Documents\TextSchema.cs (1)
894
while (start.
CompareTo
(end) < 0)
src\Framework\System\Windows\Documents\TextTreeUndo.cs (1)
83
if (start.
CompareTo
(end) == 0)