181 references to End
PresentationFramework (181)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
114ITextPointer endPointer = segment.End.CreatePointer(LogicalDirection.Backward); 611end = textView.TextSegments[textView.TextSegments.Count - 1].End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
433ITextPointer end = segment.End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
540if (elementEnd.CompareTo(segment.End) >= 0) 542endOffset = elementStart.GetOffsetToPosition(segment.End);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
246ITextPointer end = segments[segments.Count - 1].End;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (35)
130ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 181ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 209ITextPointer invalidateEnd = _segments[endSeg].Segment.End; 259if ((highlightSegment.Segment.End.CompareTo(textPosition) > 0) || 260((highlightSegment.Segment.End.CompareTo(textPosition) == 0) && (direction == LogicalDirection.Backward))) 365if (highlightSegment.Segment.End.CompareTo(rangeSegment.Start) > 0) 370IList<HighlightSegment> res = highlightSegment.Split(rangeSegment.Start, rangeSegment.End, highlightRange); 381if (rangeSegment.End.CompareTo(highlightSegment.Segment.End) <= 0) 386(rangeSegment.End.CompareTo(rangeEnumerator.Current.Start) <= 0), 393rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 412if (rangeSegment.End.CompareTo(highlightSegment.Segment.Start) > 0) 419rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 425_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 437_segments.Insert(ind++, new HighlightSegment(rangeSegment.Start, rangeSegment.End, highlightRange)); 443_segments.Insert(ind++, new HighlightSegment(rangeEnumerator.Current.Start, rangeEnumerator.Current.End, highlightRange)); 450invalidateEnd = _segments[ind].Segment.End; 466if (pos.CompareTo(highlightSegment.Segment.End) < 0) 467return highlightSegment.Segment.End; 488if (pos.CompareTo(highlightSegment.Segment.End) <= 0) 495return highlightSegment.Segment.End; 512if (highlightSegment.Segment.End.CompareTo(end) == 0) 770if ((ps.CompareTo(_segment.Start) == 0) || (ps.CompareTo(_segment.End) == 0)) 773((ps.CompareTo(_segment.End) == 0) && (side == LogicalDirection.Backward))) 783res.Add(new HighlightSegment(ps, _segment.End, _owners)); 806if ((_segment.Start.CompareTo(ps1) > 0) || (_segment.End.CompareTo(ps1) < 0)) 817if (_segment.End.CompareTo(ps1) > 0) 819res.Add(new HighlightSegment(ps1, _segment.End, _owners)); 864(res[0].Segment.End.CompareTo(ps2) == 0)) 959pageGeometry = view.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End); 996while (cursor.CompareTo(_segment.End) < 0) 1013CloseSegment(ref segmentStart, cursor, _segment.End); 1031CloseSegment(ref segmentStart, cursor, _segment.End); 1052CloseSegment(ref segmentStart, cursor, _segment.End);
MS\Internal\Annotations\TextAnchor.cs (39)
56_segments.Add(new TextSegment(segment.Start, segment.End)); 179(_segments[i].End.CompareTo(other._segments[i].End) != 0)) 210if (theirSegment.Start.CompareTo(theirSegment.End) == 0) 224if ((ourSegment.End.CompareTo(theirSegment.End) == 0) && 225(theirSegment.End.LogicalDirection == LogicalDirection.Backward)) 230if (ourSegment.Start.CompareTo(theirSegment.End) >= 0) 237if (ourSegment.End.CompareTo(theirSegment.Start) <= 0) 295Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 302if (current.Start.CompareTo(otherSegment.End) >= 0) 312if (current.End.CompareTo(otherSegment.End) <= 0) 321anchor._segments[currentIndex] = CreateNormalizedSegment(otherSegment.End, current.End); 332if (current.End.CompareTo(otherSegment.Start) > 0) 337if (current.End.CompareTo(otherSegment.End) > 0) 340anchor._segments.Insert(currentIndex + 1, CreateNormalizedSegment(otherSegment.End, current.End)); 397Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 403if (currentSegment.Start.CompareTo(otherSegment.End) >= 0) 410if (currentSegment.End.CompareTo(otherSegment.Start) <= 0) 423anchor._segments[current] = CreateNormalizedSegment(otherSegment.Start, currentSegment.End); 430if (currentSegment.End.CompareTo(otherSegment.End) > 0) 432anchor._segments[current] = CreateNormalizedSegment(currentSegment.Start, otherSegment.End); 434anchor._segments.Insert(current + 1, CreateNormalizedSegment(otherSegment.End, currentSegment.End)); 438else if (currentSegment.End.CompareTo(otherSegment.End) == 0) 522return _segments.Count > 0 ? _segments[_segments.Count - 1].End : null; 534return (_segments.Count == 1 && (object)_segments[0].Start == (object)_segments[0].End); 551textBuffer.Append(TextRangeBase.GetTextInternal(_segments[i].Start, _segments[i].End)); 606if (segment.Start.CompareTo(segment.End) >= 0) 638if (i > 0 && newSegment.Start.CompareTo(_segments[i - 1].End) < 0) 642if (i < _segments.Count && newSegment.End.CompareTo(_segments[i].Start) > 0) 799return x.End.CompareTo(y.End);
MS\Internal\Documents\DocumentViewerHelper.cs (3)
148startPointer = !findToolBar.SearchUp ? textSegment.Start : textSegment.End; 163if (textSegment.End.CompareTo(startPointer) > 0) 165startPointer = textSegment.End;
MS\Internal\Documents\HostedElements.cs (2)
98((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0); 109while (((ITextPointer)_currentPosition).CompareTo(_textSegments[_currentTextSegment].End) < 0)
MS\Internal\Documents\MultiPageTextView.cs (2)
164ITextPointer 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)
156ITextPointer endPositionInThisSegment = endPosition.CompareTo(textSegment.End) < 0 ? endPosition : textSegment.End; 475if (segment.Start.CompareTo(position) < 0 && segment.End.CompareTo(position) > 0) 499if (segment.End.CompareTo(position) == 0) 511if (segment.End.LogicalDirection == LogicalDirection.Forward) 530contains = (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)
996((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (3)
801masterPointer = startOfPage ? textSegment.Start : textSegment.End; 816if (textSegment.End.CompareTo(masterPointer) > 0) 818masterPointer = textSegment.End;
System\Windows\Controls\TextAdaptor.cs (5)
108if (!textView.Contains(end) && end.CompareTo(textSegments[textSegments.Count-1].End) > 0) 110end = textSegments[textSegments.Count - 1].End.CreatePointer(); 142ITextPointer last = (lineRange.End.CompareTo(end) >= 0) ? end : lineRange.End; 554ranges[i] = new TextRangeAdaptor(this, visibleTextSegments[i].Start, visibleTextSegments[i].End, _textPeer);
System\Windows\Controls\TextBox.cs (1)
1478textPointer = (TextPointer)TextEditor.GetTextView(this.RenderScope).GetLineRange(textPointer).End.CreatePointer(textPointer.LogicalDirection);
System\Windows\Controls\TextRangeAdaptor.cs (12)
617if (_end.CompareTo(lineRange.End) != 0) 619_end = lineRange.End.CreatePointer(); 630if (_end.CompareTo(lineRange.End) != 0) 632_end = lineRange.End.CreatePointer(); 698if (_end.CompareTo(textSegments[textSegments.Count - 1].End) != 0) 700_end = textSegments[textSegments.Count - 1].End.CreatePointer(); 799nextLineStart = textView.GetPositionAtNextLine(lineRange.End, Double.NaN, 1, out newSuggestedX, out linesMoved); 809nextLineStart = lineRange.End; 832previousLineEnd = lineRange.End; 925while (position.CompareTo(textSegments[textSegments.Count - 1].End) != 0) 929position.MoveToPosition(textSegments[textSegments.Count - 1].End); 1152position.MoveToPosition(textSegments[textSegments.Count - 1].End);
System\windows\Documents\CaretElement.cs (1)
469Geometry geometry = _textEditor.Selection.TextView.GetTightBoundingGeometryFromTextPositions(segment.Start, segment.End);
System\Windows\Documents\CompositionAdorner.cs (5)
597if (endLinePointer.CompareTo(textSegment.End) < 0) 599if (end.CompareTo(textSegment.End) < 0) 607endLinePointer = textSegment.End.CreatePointer(LogicalDirection.Backward); 612Debug.Assert(endLinePointer.CompareTo(textSegment.End) == 0, "The end line pointer is positioned after the composition text range end pointer!"); 622startLinePointer = textSegment.End.CreatePointer(LogicalDirection.Forward);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
713Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 735DocumentSequenceTextPointer tsEnd = (DocumentSequenceTextPointer)ts.End;
System\Windows\Documents\DocumentSequenceTextView.cs (2)
377tpEnd = new DocumentSequenceTextPointer(ChildBlock, childTR.End); 568ptpEnd = this._docPage.FixedDocumentSequence.TextContainer.MapChildPositionToParent(segment.End);
System\Windows\Documents\FixedDocument.cs (2)
1044Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1151int 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)
164endResetFormatPosition = (TextPointer)autoWordRange.End;
System\windows\Documents\TextEditorDragDrop.cs (4)
479dropPosition.CompareTo(lineRange.End) < 0 && 489string wordText = TextRangeBase.GetTextInternal(wordSegment.Start, wordSegment.End); 491dropPosition = (indexInWord < (wordText.Length / 2)) ? wordSegment.Start : wordSegment.End; 632if (dropPosition.CompareTo(textSegment.End) == 0)
System\windows\Documents\TextEditorSelection.cs (6)
137ITextRange textRange = new TextRange(lineRange.Start, lineRange.End); 867LogicalDirection orientation = TextPointerBase.IsNextToPlainLineBreak(lineRange.End, LogicalDirection.Backward) ? LogicalDirection.Forward : LogicalDirection.Backward; 870ITextPointer caretPosition = lineRange.End.GetFrozenPointer(orientation); 1661if (lineRange.End.CompareTo(This.Selection.End) < 0) 1668ITextPointer destination = lineRange.End; 2381return lineRange.IsNull ? position : lineRange.End;
System\Windows\Documents\TextPointerBase.cs (1)
701: position.CompareTo(lineSegment.End) == 0;
System\Windows\Documents\TextRange.cs (4)
1644TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1648TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1653TextRangeEdit.SetInlineProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction); 1670TextRangeEdit.SetParagraphProperty((TextPointer)textSegment.Start, (TextPointer)textSegment.End, formattingProperty, value, propertyValueAction);
System\Windows\Documents\TextRangeBase.cs (10)
199TextRangeBase.Select(thisRange, wordRange.Start, wordRange.End); 216string autoWord = TextRangeBase.GetTextInternal(autoWordRange.Start, autoWordRange.End).TrimEnd(' '); 404while (moved && position.CompareTo(textSegment.End) < 0) 479while (moved && position.CompareTo(textSegment.End) <= 0) 1203return thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 1214(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End) 1220(object)thisRange._TextSegments[0].Start == (object)thisRange._TextSegments[0].End); 1275text += TextRangeBase.GetTextInternal(textSegment.Start, textSegment.End); 1923ITextPointer end = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End; 2043ITextPointer finalEnd = thisRange._TextSegments[thisRange._TextSegments.Count - 1].End;
System\Windows\Documents\TextRangeEditTables.cs (5)
69TextPointer lastCellPointer = (TextPointer)range.TextSegments[0].End.GetNextInsertionPosition(LogicalDirection.Backward); 411if (segment.Start.CompareTo(segment.End) != 0) 417end = segment.End; 424end = textSegments[textSegments.Count - 1].End; 1077TextPointer end = ((TextPointer)textSegment.End).GetNextInsertionPosition(LogicalDirection.Backward);
System\Windows\Documents\TextRangeSerialization.cs (2)
368ITextRange textRange = new TextRange(textSegment.Start, textSegment.End); 374WriteXamlTextSegment(xmlWriter, textSegment.Start, textSegment.End, xamlTypeMapper, ref elementLevel, wpfPayload, ignoreWriteHyperlinkEnd, ignoreList, preserveTextElements);
System\windows\Documents\TextSelection.cs (5)
427movingPosition = thisSelection.TextSegments[0].End; 844movingPosition = cursorWordRange.End.GetFrozenPointer(LogicalDirection.Backward); 848startPosition = anchorWordRange.End.GetFrozenPointer(LogicalDirection.Backward); 1299new TextRange(autoWordRange.Start, autoWordRange.End).ApplyPropertyValue(formattingProperty, value); 1916else if (movingPosition.CompareTo(thisSelection.TextSegments[0].End) == 0)
System\windows\Documents\TextSelectionHighlightLayer.cs (9)
92if ((direction == LogicalDirection.Forward && textSegment.Start.CompareTo(textPosition) <= 0 && textPosition.CompareTo(textSegment.End) < 0) || // 93(direction == LogicalDirection.Backward && textSegment.Start.CompareTo(textPosition) < 0 && textPosition.CompareTo(textSegment.End) <= 0)) 137if (textSegment.Start.CompareTo(textSegment.End) != 0) 144else if (textPosition.CompareTo(textSegment.End) < 0) 146transitionPosition = textSegment.End.CreateStaticPointer(); 158if (textSegment.Start.CompareTo(textSegment.End) != 0) 160if (textPosition.CompareTo(textSegment.End) > 0) 162transitionPosition = textSegment.End.CreateStaticPointer(); 311return textRange._TextSegments[0].Start.CompareTo(textRange._TextSegments[textRange._TextSegments.Count - 1].End) == 0;
System\Windows\Documents\TextStore.cs (2)
1095end = (lineRange.End.CompareTo(endPointer) >= 0) ? endPointer : lineRange.End;