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