181 references to End
PresentationFramework (181)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
103ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 600end = textView.TextSegments[textView.TextSegments.Count - 1].End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
424ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
530if (elementEnd.CompareTo(segment.End) >= 0) 532endOffset = elementStart.GetOffsetToPosition(segment.End);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
234ITextPointer end = segments[segments.Count - 1].End;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (35)
123ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 174ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 202ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 252if ((highlightSegment.Segment.End.CompareTo(textPosition) > 0) || 253((highlightSegment.Segment.End.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward))) 358if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0) 363IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange); 374if (rangeSegment.End.CompareTo(highlightSegment.Segment.End) <= 0) 379(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0), 386rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 405if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0) 412rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 418_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 430_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 436_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange)); 443invalidateEnd = _segments[ind].Segment.End; 459if (pos.CompareTo(highlightSegment.Segment.End) < 0) 460return highlightSegment.Segment.End; 481if (pos.CompareTo(highlightSegment.Segment.End) <= 0) 488return highlightSegment.Segment.End; 505if (highlightSegment.Segment.End.CompareTo(end) == 0) 763if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0)) 766((ps.CompareTo(_segment.End) == 0) && (side == LogicalDirection.Backward))) 776res.Add(new HighlightSegment(ps, _segment.End, _owners)); 799if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0)) 810if (_segment.End.CompareTo(ps1) > 0) 812res.Add(new HighlightSegment(ps1, _segment.End, _owners)); 857(res[0].Segment.End.CompareTo(ps2) == 0)) 952pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End); 989while (cursor.CompareTo(_segment.End) < 0) 1006CloseSegment(ref segmentStart, cursor, _segment.End); 1024CloseSegment(ref segmentStart, cursor, _segment.End); 1045CloseSegment(ref segmentStart, cursor, _segment.End);
MS\Internal\Annotations\TextAnchor.cs (39)
53_segments.Add(new TextSegment(segment.Start, segment.End)); 176(_segments[i].End.CompareTo(other._segments[i].End) != 0)) 207if (theirSegment.Start.CompareTo(theirSegment.End) == 0) 221if ((ourSegment.End.CompareTo(theirSegment.End) == 0) && 222(theirSegment.End.LogicalDirection == LogicalDirection.Backward)) 227if (ourSegment.Start.CompareTo(theirSegment.End) >= 0) 234if (ourSegment.End.CompareTo(theirSegment.Start) <= 0) 292Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 299if (current.Start.CompareTo(otherSegment.End) >= 0) 309if (current.End.CompareTo(otherSegment.End) <= 0) 318anchor._segments[currentIndex] = CreateNormalizedSegment(otherSegment.End, current.End); 329if (current.End.CompareTo(otherSegment.Start) > 0) 334if (current.End.CompareTo(otherSegment.End) > 0) 337anchor._segments.Insert(currentIndex + 1, CreateNormalizedSegment(otherSegment.End, current.End)); 394Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 400if (currentSegment.Start.CompareTo(otherSegment.End) >= 0) 407if (currentSegment.End.CompareTo(otherSegment.Start) <= 0) 420anchor._segments[current] = CreateNormalizedSegment(otherSegment.Start, currentSegment.End); 427if (currentSegment.End.CompareTo(otherSegment.End) > 0) 429anchor._segments[current] = CreateNormalizedSegment(currentSegment.Start, otherSegment.End); 431anchor._segments.Insert(current + 1, CreateNormalizedSegment(otherSegment.End, currentSegment.End)); 435else if (currentSegment.End.CompareTo(otherSegment.End) == 0) 519return _segments.Count > 0 ? _segments[_segments.Count - 1].End : null; 531return (_segments.Count == 1 && (object)_segments[0].Start == (object)_segments[0].End); 548textBuffer.Append(TextRangeBase.GetTextInternal(_segments[i].Start, _segments[i].End)); 603if (segment.Start.CompareTo(segment.End) >= 0) 635if (i > 0 && newSegment.Start.CompareTo(_segments[i - 1].End) < 0) 639if (i < _segments.Count && newSegment.End.CompareTo(_segments[i].Start) > 0) 796return x.End.CompareTo(y.End);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
146startPointer = !findToolBar.SearchUp ? textSegment.Start : textSegment.End; 161if (textSegment.End.CompareTo(startPointer) > 0) 163startPointer = textSegment.End;
MS\Internal\Documents\HostedElements.cs (2)
88((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 99while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0)
MS\Internal\Documents\MultiPageTextView.cs (2)
162ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
MS\Internal\Documents\TextBoxView.cs (1)
1489int positionsCovered = segment.End.Offset - segment.Start.Offset;
MS\Internal\Documents\TextDocumentView.cs (6)
154ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 472if (segment.Start.CompareTo(position) < 0 && segment.End.CompareTo(position) > 0) 496if (segment.End.CompareTo(position) == 0) 508if (segment.End.LogicalDirection == LogicalDirection.Forward) 527contains = (position.TextContainer.End.CompareTo(segments[segments.Count - 1].End) == 0);
MS\Internal\PtsHost\BreakRecordTable.cs (1)
462if (start.CompareTo(textSegment.End) <= 0)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
988((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
785masterPointer = startOfPage ? textSegment.Start : textSegment.End; 800if (textSegment.End.CompareTo(masterPointer) > 0) 802masterPointer = textSegment.End;
System\Windows\Controls\TextAdaptor.cs (5)
105if (!textView.Contains(end) && end.CompareTo(textSegments[textSegments.Count-1].End) > 0) 107end = textSegments[textSegments.Count - 1].End.CreatePointer(); 139ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End; 551ranges[i] = new TextRangeAdaptor(this, visibleTextSegments[i].Start, visibleTextSegments[i].End, _textPeer);
System\Windows\Controls\TextBox.cs (1)
1473textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).GetLineRange(textPointer).End.CreatePointer(textPointer.LogicalDirection);
System\Windows\Controls\TextRangeAdaptor.cs (12)
615if (_end.CompareTo(lineRange.End) != 0) 617_end = lineRange.End.CreatePointer(); 628if (_end.CompareTo(lineRange.End) != 0) 630_end = lineRange.End.CreatePointer(); 696if (_end.CompareTo(textSegments[textSegments.Count - 1].End) != 0) 698_end = textSegments[textSegments.Count - 1].End.CreatePointer(); 797nextLineStart = textView.GetPositionAtNextLine(lineRange.End, Double.NaN, 1, out newSuggestedX, out linesMoved); 807nextLineStart = lineRange.End; 830previousLineEnd = lineRange.End; 923while (position.CompareTo(textSegments[textSegments.Count - 1].End) != 0) 927position.MoveToPosition(textSegments[textSegments.Count - 1].End); 1150position.MoveToPosition(textSegments[textSegments.Count - 1].End);
System\windows\Documents\CaretElement.cs (1)
465Geometry geometry = _textEditor.Selection.TextView.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
System\Windows\Documents\CompositionAdorner.cs (5)
596if (endLinePointer.CompareTo(textSegment.End) < 0) 598if (end.CompareTo(textSegment.End) < 0) 606endLinePointer = textSegment.End.CreatePointer(LogicalDirection.Backward); 611Debug.Assert(endLinePointer.CompareTo(textSegment.End) == 0, "The end line pointer is positioned after the composition text range end pointer!"); 621startLinePointer = textSegment.End.CreatePointer(LogicalDirection.Forward);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
696Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 718DocumentSequenceTextPointer tsEnd = (DocumentSequenceTextPointer)ts.End;
System\Windows\Documents\DocumentSequenceTextView.cs (2)
369tpEnd = new DocumentSequenceTextPointer(ChildBlock, childTR.End); 560ptpEnd = this._docPage.FixedDocumentSequence.TextContainer.MapChildPositionToParent(segment.End);
System\Windows\Documents\FixedDocument.cs (2)
1035Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1142int endPage = this.FixedContainer.GetPageNumber(textSegment.End);
System\Windows\Documents\FlowDocument.cs (3)
1423_formatter.OnContentInvalidated(false, textSegment.Start, textSegment.End); 1428textSegment.Start.GetOffsetToPosition(textSegment.End), 1429textSegment.Start.GetOffsetToPosition(textSegment.End)
System\windows\Documents\TextEditorCharacters.cs (1)
148endResetFormatPosition = (TextPointer)autoWordRange.End;
System\windows\Documents\TextEditorDragDrop.cs (4)
462dropPosition.CompareTo(lineRange.End) < 0 && 472string wordText = TextRangeBase.GetTextInternal(wordSegment.Start, wordSegment.End); 474dropPosition = (indexInWord < (wordText.Length / 2)) ? wordSegment.Start : wordSegment.End; 615if (dropPosition.CompareTo(textSegment.End) == 0)
System\windows\Documents\TextEditorSelection.cs (6)
122ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 852LogicalDirection orientation = TextPointerBase.IsNextToPlainLineBreak(lineRange.End, LogicalDirection.Backward) ? LogicalDirection.Forward : LogicalDirection.Backward; 855ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation); 1646if (lineRange.End.CompareTo(This.Selection.End) < 0) 1653ITextPointer destination = lineRange.End; 2366return lineRange.IsNull ? position : lineRange.End;
System\Windows\Documents\TextPointerBase.cs (1)
699: position.CompareTo(lineSegment.End) == 0;
System\Windows\Documents\TextRange.cs (4)
1634TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1638TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1643TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1660TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
System\Windows\Documents\TextRangeBase.cs (10)
196TextRangeBase.Select(thisRange, wordRange.Start, wordRange.End); 213string autoWord = TextRangeBase.GetTextInternal(autoWordRange.Start, autoWordRange.End).TrimEnd(' '); 401while (moved && position.CompareTo(textSegment.End) < 0) 476while (moved && position.CompareTo(textSegment.End) <= 0) 1200return thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 1211(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End) 1217(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End); 1272text += TextRangeBase.GetTextInternal(textSegment.Start, textSegment.End); 1919ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 2039ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeEditTables.cs (5)
67TextPointer lastCellPointer = (TextPointer)range.TextSegments[0].End.GetNextInsertionPosition(LogicalDirection.Backward); 409if (segment.Start.CompareTo(segment.End) != 0) 415end = segment.End; 422end = textSegments[textSegments.Count - 1].End; 1079TextPointer end = ((TextPointer)textSegment.End).GetNextInsertionPosition(LogicalDirection.Backward);
System\Windows\Documents\TextRangeSerialization.cs (2)
362ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 368WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);
System\windows\Documents\TextSelection.cs (5)
424movingPosition = thisSelection.TextSegments[0].End; 841movingPosition = cursorWordRange.End.GetFrozenPointer(LogicalDirection.Backward); 845startPosition = anchorWordRange.End.GetFrozenPointer(LogicalDirection.Backward); 1296new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value); 1913else if (movingPosition.CompareTo(thisSelection.TextSegments[0].End) == 0)
System\windows\Documents\TextSelectionHighlightLayer.cs (9)
90if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.CompareTo(textSegment.End) < 0) || // 91(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.CompareTo(textSegment.End) <= 0)) 135if (textSegment.Start.CompareTo(textSegment.End) != 0) 142else if (textPosition.CompareTo(textSegment.End) < 0) 144transitionPosition = textSegment.End.CreateStaticPointer(); 156if (textSegment.Start.CompareTo(textSegment.End) != 0) 158if (textPosition.CompareTo(textSegment.End) > 0) 160transitionPosition = textSegment.End.CreateStaticPointer(); 309return textRange._TextSegments[0].Start.CompareTo(textRange._TextSegments[textRange._TextSegments.Count - 1].End) == 0;
System\Windows\Documents\TextStore.cs (2)
1084end = (lineRange.End.CompareTo(endPointer) >= 0) ? endPointer : lineRange.End;