181 references to End
PresentationFramework (181)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
102ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 602end = textView.TextSegments[textView.TextSegments.Count - 1].End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
423ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
529if (elementEnd.CompareTo(segment.End) >= 0) 531endOffset = elementStart.GetOffsetToPosition(segment.End);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
233ITextPointer end = segments[segments.Count - 1].End;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (35)
122ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 173ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 201ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 251if ((highlightSegment.Segment.End.CompareTo(textPosition) > 0) || 252((highlightSegment.Segment.End.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward))) 357if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0) 362IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange); 373if (rangeSegment.End.CompareTo(highlightSegment.Segment.End) <= 0) 378(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0), 385rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 404if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0) 411rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 417_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 429_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 435_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange)); 442invalidateEnd = _segments[ind].Segment.End; 458if (pos.CompareTo(highlightSegment.Segment.End) < 0) 459return highlightSegment.Segment.End; 480if (pos.CompareTo(highlightSegment.Segment.End) <= 0) 487return highlightSegment.Segment.End; 504if (highlightSegment.Segment.End.CompareTo(end) == 0) 762if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0)) 765((ps.CompareTo(_segment.End) == 0) && (side == LogicalDirection.Backward))) 775res.Add(new HighlightSegment(ps, _segment.End, _owners)); 798if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0)) 809if (_segment.End.CompareTo(ps1) > 0) 811res.Add(new HighlightSegment(ps1, _segment.End, _owners)); 856(res[0].Segment.End.CompareTo(ps2) == 0)) 948pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End); 985while (cursor.CompareTo(_segment.End) < 0) 1002CloseSegment(ref segmentStart, cursor, _segment.End); 1020CloseSegment(ref segmentStart, cursor, _segment.End); 1041CloseSegment(ref segmentStart, cursor, _segment.End);
MS\Internal\Annotations\TextAnchor.cs (39)
52_segments.Add(new TextSegment(segment.Start, segment.End)); 175(_segments[i].End.CompareTo(other._segments[i].End) != 0)) 206if (theirSegment.Start.CompareTo(theirSegment.End) == 0) 220if ((ourSegment.End.CompareTo(theirSegment.End) == 0) && 221(theirSegment.End.LogicalDirection == LogicalDirection.Backward)) 226if (ourSegment.Start.CompareTo(theirSegment.End) >= 0) 233if (ourSegment.End.CompareTo(theirSegment.Start) <= 0) 291Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 298if (current.Start.CompareTo(otherSegment.End) >= 0) 308if (current.End.CompareTo(otherSegment.End) <= 0) 317anchor._segments[currentIndex] = CreateNormalizedSegment(otherSegment.End, current.End); 328if (current.End.CompareTo(otherSegment.Start) > 0) 333if (current.End.CompareTo(otherSegment.End) > 0) 336anchor._segments.Insert(currentIndex + 1, CreateNormalizedSegment(otherSegment.End, current.End)); 393Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 399if (currentSegment.Start.CompareTo(otherSegment.End) >= 0) 406if (currentSegment.End.CompareTo(otherSegment.Start) <= 0) 419anchor._segments[current] = CreateNormalizedSegment(otherSegment.Start, currentSegment.End); 426if (currentSegment.End.CompareTo(otherSegment.End) > 0) 428anchor._segments[current] = CreateNormalizedSegment(currentSegment.Start, otherSegment.End); 430anchor._segments.Insert(current + 1, CreateNormalizedSegment(otherSegment.End, currentSegment.End)); 434else if (currentSegment.End.CompareTo(otherSegment.End) == 0) 518return _segments.Count > 0 ? _segments[_segments.Count - 1].End : null; 530return (_segments.Count == 1 && (object)_segments[0].Start == (object)_segments[0].End); 547textBuffer.Append(TextRangeBase.GetTextInternal(_segments[i].Start, _segments[i].End)); 602if (segment.Start.CompareTo(segment.End) >= 0) 634if (i > 0 && newSegment.Start.CompareTo(_segments[i - 1].End) < 0) 638if (i < _segments.Count && newSegment.End.CompareTo(_segments[i].Start) > 0) 795return x.End.CompareTo(y.End);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
145startPointer = !findToolBar.SearchUp ? textSegment.Start : textSegment.End; 160if (textSegment.End.CompareTo(startPointer) > 0) 162startPointer = textSegment.End;
MS\Internal\Documents\HostedElements.cs (2)
87((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 98while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0)
MS\Internal\Documents\MultiPageTextView.cs (2)
161ITextPointer endPositionInTextSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End;
MS\Internal\Documents\TextBoxView.cs (1)
1446int positionsCovered = segment.End.Offset - segment.Start.Offset;
MS\Internal\Documents\TextDocumentView.cs (6)
153ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 471if (segment.Start.CompareTo(position) < 0 && segment.End.CompareTo(position) > 0) 495if (segment.End.CompareTo(position) == 0) 507if (segment.End.LogicalDirection == LogicalDirection.Forward) 526contains = (position.TextContainer.End.CompareTo(segments[segments.Count - 1].End) == 0);
MS\Internal\PtsHost\BreakRecordTable.cs (1)
458if (start.CompareTo(textSegment.End) <= 0)
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
981((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
781masterPointer = startOfPage ? textSegment.Start : textSegment.End; 796if (textSegment.End.CompareTo(masterPointer) > 0) 798masterPointer = textSegment.End;
System\Windows\Controls\TextAdaptor.cs (5)
104if (!textView.Contains(end) && end.CompareTo(textSegments[textSegments.Count-1].End) > 0) 106end = textSegments[textSegments.Count - 1].End.CreatePointer(); 141ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End; 544ranges[i] = new TextRangeAdaptor(this, visibleTextSegments[i].Start, visibleTextSegments[i].End, _textPeer);
System\Windows\Controls\TextBox.cs (1)
1472textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).GetLineRange(textPointer).End.CreatePointer(textPointer.LogicalDirection);
System\Windows\Controls\TextRangeAdaptor.cs (12)
614if (_end.CompareTo(lineRange.End) != 0) 616_end = lineRange.End.CreatePointer(); 627if (_end.CompareTo(lineRange.End) != 0) 629_end = lineRange.End.CreatePointer(); 695if (_end.CompareTo(textSegments[textSegments.Count - 1].End) != 0) 697_end = textSegments[textSegments.Count - 1].End.CreatePointer(); 796nextLineStart = textView.GetPositionAtNextLine(lineRange.End, Double.NaN, 1, out newSuggestedX, out linesMoved); 806nextLineStart = lineRange.End; 829previousLineEnd = lineRange.End; 922while (position.CompareTo(textSegments[textSegments.Count - 1].End) != 0) 926position.MoveToPosition(textSegments[textSegments.Count - 1].End); 1149position.MoveToPosition(textSegments[textSegments.Count - 1].End);
System\windows\Documents\CaretElement.cs (1)
464Geometry geometry = _textEditor.Selection.TextView.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
System\Windows\Documents\CompositionAdorner.cs (5)
592if (endLinePointer.CompareTo(textSegment.End) < 0) 594if (end.CompareTo(textSegment.End) < 0) 602endLinePointer = textSegment.End.CreatePointer(LogicalDirection.Backward); 607Debug.Assert(endLinePointer.CompareTo(textSegment.End) == 0, "The end line pointer is positioned after the composition text range end pointer!"); 617startLinePointer = textSegment.End.CreatePointer(LogicalDirection.Forward);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
695Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 717DocumentSequenceTextPointer tsEnd = (DocumentSequenceTextPointer)ts.End;
System\Windows\Documents\DocumentSequenceTextView.cs (2)
368tpEnd = new DocumentSequenceTextPointer(ChildBlock, childTR.End); 553ptpEnd = this._docPage.FixedDocumentSequence.TextContainer.MapChildPositionToParent(segment.End);
System\Windows\Documents\FixedDocument.cs (2)
1034Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1141int endPage = this.FixedContainer.GetPageNumber(textSegment.End);
System\Windows\Documents\FlowDocument.cs (3)
1413_formatter.OnContentInvalidated(false, textSegment.Start, textSegment.End); 1418textSegment.Start.GetOffsetToPosition(textSegment.End), 1419textSegment.Start.GetOffsetToPosition(textSegment.End)
System\windows\Documents\TextEditorCharacters.cs (1)
147endResetFormatPosition = (TextPointer)autoWordRange.End;
System\windows\Documents\TextEditorDragDrop.cs (4)
461dropPosition.CompareTo(lineRange.End) < 0 && 471string wordText = TextRangeBase.GetTextInternal(wordSegment.Start, wordSegment.End); 473dropPosition = (indexInWord < (wordText.Length / 2)) ? wordSegment.Start : wordSegment.End; 614if (dropPosition.CompareTo(textSegment.End) == 0)
System\windows\Documents\TextEditorSelection.cs (6)
121ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 851LogicalDirection orientation = TextPointerBase.IsNextToPlainLineBreak(lineRange.End, LogicalDirection.Backward) ? LogicalDirection.Forward : LogicalDirection.Backward; 854ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation); 1645if (lineRange.End.CompareTo(This.Selection.End) < 0) 1652ITextPointer destination = lineRange.End; 2365return lineRange.IsNull ? position : lineRange.End;
System\Windows\Documents\TextPointerBase.cs (1)
698: position.CompareTo(lineSegment.End) == 0;
System\Windows\Documents\TextRange.cs (4)
1633TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1637TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1642TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1659TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
System\Windows\Documents\TextRangeBase.cs (10)
195TextRangeBase.Select(thisRange, wordRange.Start, wordRange.End); 212string autoWord = TextRangeBase.GetTextInternal(autoWordRange.Start, autoWordRange.End).TrimEnd(' '); 400while (moved && position.CompareTo(textSegment.End) < 0) 475while (moved && position.CompareTo(textSegment.End) <= 0) 1199return thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 1210(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End) 1216(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End); 1271text += TextRangeBase.GetTextInternal(textSegment.Start, textSegment.End); 1918ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 2038ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeEditTables.cs (5)
66TextPointer lastCellPointer = (TextPointer)range.TextSegments[0].End.GetNextInsertionPosition(LogicalDirection.Backward); 408if (segment.Start.CompareTo(segment.End) != 0) 414end = segment.End; 421end = textSegments[textSegments.Count - 1].End; 1078TextPointer end = ((TextPointer)textSegment.End).GetNextInsertionPosition(LogicalDirection.Backward);
System\Windows\Documents\TextRangeSerialization.cs (2)
361ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 367WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);
System\windows\Documents\TextSelection.cs (5)
411movingPosition = thisSelection.TextSegments[0].End; 825movingPosition = cursorWordRange.End.GetFrozenPointer(LogicalDirection.Backward); 829startPosition = anchorWordRange.End.GetFrozenPointer(LogicalDirection.Backward); 1280new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value); 1897else if (movingPosition.CompareTo(thisSelection.TextSegments[0].End) == 0)
System\windows\Documents\TextSelectionHighlightLayer.cs (9)
89if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.CompareTo(textSegment.End) < 0) || // 90(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.CompareTo(textSegment.End) <= 0)) 134if (textSegment.Start.CompareTo(textSegment.End) != 0) 141else if (textPosition.CompareTo(textSegment.End) < 0) 143transitionPosition = textSegment.End.CreateStaticPointer(); 155if (textSegment.Start.CompareTo(textSegment.End) != 0) 157if (textPosition.CompareTo(textSegment.End) > 0) 159transitionPosition = textSegment.End.CreateStaticPointer(); 308return textRange._TextSegments[0].Start.CompareTo(textRange._TextSegments[textRange._TextSegments.Count - 1].End) == 0;
System\Windows\Documents\TextStore.cs (2)
1080end = (lineRange.End.CompareTo(endPointer) >= 0) ? endPointer : lineRange.End;