48 instantiations of TextSegment
PresentationFramework (48)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
401rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 428rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 576TextSegment[] rangeArray = new TextSegment[] { new TextSegment(start, end) }; 664_segment = new TextSegment(start, end); 1104_contentSegments.Add(new TextSegment(segmentStart, segmentEnd));
src\Framework\MS\Internal\Annotations\TextAnchor.cs (2)
59_segments.Add(new TextSegment(segment.Start, segment.End)); 700return new TextSegment(start, end);
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
993return new TextSegment(start, end, true); 1312segments.Add(new TextSegment(start, end, true));
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (2)
99segments.Add(new TextSegment( 109segments.Add(new TextSegment(
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
2347lineRange = new TextSegment(((TextParagraphResult)paragraph).EndPosition, ((TextParagraphResult)paragraph).EndPosition, true); 2354lineRange = new TextSegment(lines[lineIndex].StartPosition, lines[lineIndex].GetContentEndPosition(), true); 2410lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 3302segments.Add(new TextSegment(_textContainer.Start, segmentEnd, true));
src\Framework\MS\Internal\Documents\TextParagraphView.cs (2)
301return new TextSegment(lines[lineIndex].StartPosition, lines[lineIndex].GetContentEndPosition(), true); 511segments.Add(new TextSegment(_textContainer.Start, _textContainer.End, true));
src\Framework\System\Windows\Controls\TextAdaptor.cs (1)
525visibleTextSegments.Add(new TextSegment(visibleStart, visibleEnd, true));
src\Framework\System\Windows\Controls\TextBlock.cs (1)
1964TextSegment textSegment = new TextSegment(_complexContent.TextContainer.Start, _complexContent.TextContainer.End);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
773rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd)); 793rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd));
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (2)
393return new TextSegment(tpStart, tpEnd, true); 584parentSegments.Add(new TextSegment(ptpStart, ptpEnd,true));
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
606 return new TextSegment(position, position, true); 637return new TextSegment(begin, end, true); 742list.Add(new TextSegment(this.Start, this.End, true));
src\Framework\System\Windows\Documents\Highlights.cs (1)
373ranges.Add(new TextSegment(highlightRangeStart.CreateDynamicTextPointer(LogicalDirection.Forward), highlightTransitionPosition.CreateDynamicTextPointer(LogicalDirection.Forward)));
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
207list.Add(new TextSegment(start, end));
src\Framework\System\windows\Documents\TextEditorSelection.cs (2)
140lineRange = new TextSegment(lineStart, lineEnd); 146return new TextSegment(textRange.Start, textRange.End);
src\Framework\System\Windows\Documents\TextPointerBase.cs (2)
538return new TextSegment(thisPosition, thisPosition); 585return new TextSegment(wordStart, wordEnd);
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
1811thisRange._TextSegments.Add(new TextSegment(start, end));
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (3)
1973return new TextSegment(startPosition, endPosition); 1977return new TextSegment(startPosition, startPosition); 2005return new TextSegment(start, end);
src\Framework\System\windows\Documents\TextSegment.cs (1)
150internal static readonly TextSegment Null = new TextSegment();
src\Framework\System\windows\Documents\TextSelection.cs (7)
915anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 916cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 972anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 973cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 991anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 997cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 1009cursorWordRange = new TextSegment(cursorPosition, cursorPosition);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (4)
344rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd)); 349rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 354rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 355rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd));
267 references to TextSegment
PresentationFramework (267)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (5)
101IList<TextSegment> textSegments = CheckSelection(selection); 107foreach (TextSegment segment in textSegments) 313ReadOnlyCollection<TextSegment> ts = tv.TextSegments; 448private IList<TextSegment> CheckSelection(object selection) 453IList<TextSegment> textSegments = null;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
121IList<TextSegment> segments; 168IList<TextSegment> segments; 376internal static void CheckSelection(object selection, out ITextPointer start, out ITextPointer end, out IList<TextSegment> segments) 436internal static List<ITextView> GetDocumentPageTextViews(TextSegment segment)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
152IList<TextSegment> textSegments = null; 539private void GetTextSegmentValues(TextSegment segment, ITextPointer elementStart, ITextPointer elementEnd, out int startOffset, out int endOffset)
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
248IList<TextSegment> segments = textView.TextSegments;
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (17)
357ReadOnlyCollection<TextSegment> rangeSegments = highlightRange.Range.TextSegments; 364IEnumerator<TextSegment> rangeEnumerator = rangeSegments.GetEnumerator(); 365TextSegment rangeSegment = rangeEnumerator.MoveNext() ? rangeEnumerator.Current : TextSegment.Null; 396rangeSegment = next ? rangeEnumerator.Current : TextSegment.Null; 437rangeSegment = rangeEnumerator.MoveNext() ? rangeEnumerator.Current : TextSegment.Null; 576TextSegment[] rangeArray = new TextSegment[] { new TextSegment(start, end) }; 578_ranges = new ReadOnlyCollection<TextSegment>(rangeArray); 600private readonly ReadOnlyCollection<TextSegment> _ranges; 942private void GetSegmentGeometry(GeometryGroup geometry, TextSegment segment, ITextView parentView) 963private Geometry GetPageGeometry(TextSegment segment, ITextView view, ITextView parentView) 1137foreach (TextSegment segment in _contentSegments) 1167internal TextSegment Segment 1227private TextSegment _segment; 1228private List<TextSegment> _contentSegments = new List<TextSegment>(1);
src\Framework\MS\Internal\Annotations\TextAnchor.cs (34)
57foreach (TextSegment segment in anchor.TextSegments) 152TextSegment newSegment = CreateNormalizedSegment(start, end); 197internal bool IsOverlapping(ICollection<TextSegment> textSegments) 203TextSegment ourSegment, theirSegment; 205IEnumerator<TextSegment> ourEnumerator = _segments.GetEnumerator(); 206IEnumerator<TextSegment> theirEnumerator = textSegments.GetEnumerator(); 269foreach (TextSegment segment in otherAnchor.TextSegments) 288internal static TextAnchor TrimToRelativeComplement(TextAnchor anchor, ICollection<TextSegment> textSegments) 295IEnumerator<TextSegment> enumerator = textSegments.GetEnumerator(); 298TextSegment current; 299TextSegment otherSegment = TextSegment.Null; 302Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 390internal static TextAnchor TrimToIntersectionWith(TextAnchor anchor, ICollection<TextSegment> textSegments) 396TextSegment currentSegment, otherSegment = TextSegment.Null; 399IEnumerator<TextSegment> enumerator = textSegments.GetEnumerator(); 404Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 568internal ReadOnlyCollection<TextSegment> TextSegments 600private static ICollection<TextSegment> SortTextSegments(ICollection<TextSegment> textSegments, bool excludeZeroLength) 604List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count); 612TextSegment segment = orderedList[i]; 635private void InsertSegment(TextSegment newSegment) 661private static TextSegment CreateNormalizedSegment(ITextPointer start, ITextPointer end) 757private List<TextSegment> _segments = new List<TextSegment>(1); 774private class TextSegmentComparer : IComparer<TextSegment> 782public int Compare(TextSegment x, TextSegment y) 784if (x.Equals(TextSegment.Null)) 787if (y.Equals(TextSegment.Null)) 796if (y.Equals(TextSegment.Null))
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (5)
294internal override TextSegment GetLineRange(ITextPointer position) 303return TextSegment.Null; 529internal override ReadOnlyCollection<TextSegment> TextSegments 535return new ReadOnlyCollection<TextSegment>(new List<TextSegment>());
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
153foreach (TextSegment textSegment in masterPageTextView.TextSegments)
src\Framework\MS\Internal\Documents\HostedElements.cs (2)
39internal HostedElements(ReadOnlyCollection<TextSegment> textSegments) 222ReadOnlyCollection<TextSegment> _textSegments;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (10)
160ReadOnlyCollection<TextSegment> textSegments = _pageTextViews[i].TextSegments; 164TextSegment textSegment = textSegments[segmentIndex]; 285internal override TextSegment GetLineRange(ITextPointer position) 287TextSegment textSegment = TextSegment.Null; 688internal override ReadOnlyCollection<TextSegment> TextSegments 692List<TextSegment> textSegments = new List<TextSegment>(); 701return new ReadOnlyCollection<TextSegment>(textSegments); 877ReadOnlyCollection<TextSegment> segments;
src\Framework\MS\Internal\Documents\TextBoxView.cs (6)
983TextSegment ITextView.GetLineRange(ITextPointer position) 1302ReadOnlyCollection<TextSegment> ITextView.TextSegments 1306List<TextSegment> segments = new List<TextSegment>(1); 1314return new ReadOnlyCollection<TextSegment>(segments); 1487foreach (TextSegment segment in args.Ranges)
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (6)
87internal ReadOnlyCollection<TextSegment> GetTextSegments() 89List<TextSegment> segments; 92segments = new List<TextSegment>(); 98segments = new List<TextSegment>(1); 106segments = new List<TextSegment>(_size); 116return new ReadOnlyCollection<TextSegment>(segments);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (24)
156ReadOnlyCollection<TextSegment> textSegments = TextSegments; 159TextSegment textSegment = textSegments[segmentIndex]; 345internal override TextSegment GetLineRange(ITextPointer position) 470internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments) 480foreach (TextSegment segment in segments) 594internal override ReadOnlyCollection<TextSegment> TextSegments 601return new ReadOnlyCollection<TextSegment>(new List<TextSegment>()); 606private ReadOnlyCollection<TextSegment> TextSegmentsCore 2280private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2284TextSegment lineRange = TextSegment.Null; 2315private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position) 2317TextSegment lineRange = TextSegment.Null; 2419private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2429return TextSegment.Null; 3125ReadOnlyCollection<TextSegment> segments = this.TextSegmentsCore; 3282private ReadOnlyCollection<TextSegment> GetTextSegments() 3284ReadOnlyCollection<TextSegment> textSegments; 3301List<TextSegment> segments = new List<TextSegment>(1); 3303textSegments = new ReadOnlyCollection<TextSegment>(segments); 3578private ReadOnlyCollection<TextSegment> _segments;
src\Framework\MS\Internal\Documents\TextParagraphView.cs (5)
278internal override TextSegment GetLineRange(ITextPointer position) 506internal override ReadOnlyCollection<TextSegment> TextSegments 510List<TextSegment> segments = new List<TextSegment>(1); 512return new ReadOnlyCollection<TextSegment>(segments);
src\Framework\MS\Internal\Documents\TextViewBase.cs (4)
104internal abstract TextSegment GetLineRange(ITextPointer position); 321internal abstract ReadOnlyCollection<TextSegment> TextSegments { get; } 541TextSegment ITextView.GetLineRange(ITextPointer position) 669ReadOnlyCollection<TextSegment> ITextView.TextSegments
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (4)
123ReadOnlyCollection<TextSegment> textSegments; 440ReadOnlyCollection<TextSegment> textSegments; 462foreach (TextSegment textSegment in textSegments) 512public ReadOnlyCollection<TextSegment> TextSegments;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (2)
380return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0)));
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
466return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0)));
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
645IList<TextSegment> textSegments = selection.TextSegments;
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
803foreach (TextSegment textSegment in textView.TextSegments)
src\Framework\System\Windows\Controls\TextAdaptor.cs (4)
109ReadOnlyCollection<TextSegment> textSegments = textView.TextSegments; 144TextSegment lineRange = textView.GetLineRange(position); 502List<TextSegment> visibleTextSegments = new List<TextSegment>();
src\Framework\System\Windows\Controls\TextBlock.cs (7)
1959return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0))); 1963System.Collections.Generic.List<TextSegment> textSegmentsList = new System.Collections.Generic.List<TextSegment>(1); 1964TextSegment textSegment = new TextSegment(_complexContent.TextContainer.Start, _complexContent.TextContainer.End); 1966ReadOnlyCollection<TextSegment> textSegments = new ReadOnlyCollection<TextSegment>(textSegmentsList);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (7)
612TextSegment lineRange = textView.GetLineRange(_start); 634TextSegment lineRange = textView.GetLineRange(_end); 686ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 703ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 795TextSegment lineRange = textView.GetLineRange(position); 924ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1146ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments;
src\Framework\System\windows\Documents\CaretElement.cs (2)
468List<TextSegment> textSegments = _textEditor.Selection.TextSegments; 472TextSegment segment = textSegments[i];
src\Framework\System\Windows\Documents\CompositionAdorner.cs (1)
581TextSegment textSegment = _textView.GetLineRange(endLinePointer);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (9)
721Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 739List<TextSegment> rangeArray = new List<TextSegment>(4); 742TextSegment ts = (TextSegment)args.Ranges[idxScan]; 761lastBlock.ChildHighlightLayer.RaiseHighlightChangedEvent(new ReadOnlyCollection<TextSegment>(rangeArray)); 778cdbScan.ChildHighlightLayer.RaiseHighlightChangedEvent(new ReadOnlyCollection<TextSegment>(rangeArray)); 805cdbScan.ChildHighlightLayer.RaiseHighlightChangedEvent(new ReadOnlyCollection<TextSegment>(rangeArray));
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (10)
373internal override TextSegment GetLineRange(ITextPointer position) 388TextSegment childTR = ChildTextView.GetLineRange(tpLine.ChildPointer.CreatePointer(position.LogicalDirection)); 398return TextSegment.Null; 569internal override ReadOnlyCollection<TextSegment> TextSegments 575ReadOnlyCollection<TextSegment> childSegments = ChildTextView.TextSegments; 578List<TextSegment> parentSegments = new List<TextSegment>(childSegments.Count); 579foreach (TextSegment segment in childSegments) 586_textSegments = new ReadOnlyCollection<TextSegment>(parentSegments); 649private ReadOnlyCollection<TextSegment> _textSegments;
src\Framework\System\Windows\Documents\FixedDocument.cs (4)
1080Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1187TextSegment textSegment = (TextSegment)ranges[i];
src\Framework\System\Windows\Documents\FixedTextView.cs (6)
597internal override TextSegment GetLineRange(ITextPointer position) 735internal override ReadOnlyCollection<TextSegment> TextSegments 741List<TextSegment> list = new List<TextSegment>(1); 743_textSegments = new ReadOnlyCollection<TextSegment>(list); 1305private ReadOnlyCollection<TextSegment> _textSegments;
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
1394TextSegment textSegment; 1431textSegment = (TextSegment)args.Ranges[i];
src\Framework\System\Windows\Documents\Highlights.cs (5)
344List<TextSegment> ranges; 353ranges = new List<TextSegment>(); 378Changed(this, new LayerHighlightChangedEventArgs(new ReadOnlyCollection<TextSegment>(ranges), highlightLayer.OwnerType)); 416internal LayerHighlightChangedEventArgs(ReadOnlyCollection<TextSegment> ranges, Type ownerType) 441private readonly ReadOnlyCollection<TextSegment> _ranges;
src\Framework\System\Windows\Documents\ITextRange.cs (2)
255List<TextSegment> TextSegments { get; } 383List<TextSegment> _TextSegments { get; set; }
src\Framework\System\Windows\Documents\ITextView.cs (2)
331TextSegment GetLineRange(ITextPointer position); 530ReadOnlyCollection<TextSegment> TextSegments { get; }
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (4)
202List<TextSegment> list; 206list = new List<TextSegment>(1); 209_ranges = new ReadOnlyCollection<TextSegment>(list); 231private readonly ReadOnlyCollection<TextSegment> _ranges;
src\Framework\System\windows\Documents\TextEditorCharacters.cs (1)
155TextSegment autoWordRange = TextRangeBase.GetAutoWord(This.Selection);
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (3)
487TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(this.TextView, dropPosition); 500TextSegment wordSegment = TextPointerBase.GetWordRange(dropPosition); 642TextSegment textSegment = selection._TextSegments[i];
src\Framework\System\windows\Documents\TextEditorSelection.cs (9)
126internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position) 128TextSegment lineRange = textView.GetLineRange(position); 815TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, startPositionInner); 866TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, endPositionInner); 1618TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, movingPositionInner); 1663TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, movingPositionInner); 1686TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, This.Selection.AnchorPosition); 2380TextSegment lineRange = position.TextContainer.TextView.GetLineRange(position); 2389TextSegment lineRange = position.TextContainer.TextView.GetLineRange(position);
src\Framework\System\Windows\Documents\TextPointer.cs (1)
1623TextSegment lineRange = _tree.TextView.GetLineRange(this);
src\Framework\System\Windows\Documents\TextPointerBase.cs (4)
512internal static TextSegment GetWordRange(ITextPointer thisPosition) 526internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction) 697TextSegment lineSegment = textView.GetLineRange(position); 841TextSegment lineRange = textView.GetLineRange(position);
src\Framework\System\Windows\Documents\TextRange.cs (4)
351List<TextSegment> ITextRange.TextSegments 506List<TextSegment> ITextRange._TextSegments 1629TextSegment textSegment = _textSegments[i]; 1891private List<TextSegment> _textSegments;
src\Framework\System\Windows\Documents\TextRangeBase.cs (11)
205TextSegment wordRange = TextPointerBase.GetWordRange(normalizedPosition); 213internal static TextSegment GetAutoWord(ITextRange thisRange) 215TextSegment autoWordRange = TextSegment.Null; 231autoWordRange = TextSegment.Null; 411TextSegment textSegment = thisRange._TextSegments[i]; 480TextSegment textSegment = thisRange._TextSegments[i]; 1234internal static List<TextSegment> GetTextSegments(ITextRange thisRange) 1282TextSegment textSegment; 1810thisRange._TextSegments = new List<TextSegment>(1); 2015List<TextSegment> textSegments;
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (13)
285internal static List<TextSegment> BuildTableRange( 332private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell) 344List<TextSegment> cellRange = new List<TextSegment>(lastRowIndex - firstRowIndex + 1); 376private static List<TextSegment> BuildCrossTableSelection( 380List<TextSegment> textSegments = new List<TextSegment>(1); 406List<TextSegment> textSegments = range._TextSegments; 412TextSegment segment = textSegments[i]; 977List<TextSegment> textSegments = TextRangeEditTables.BuildTableRange( 1077private static void ClearTableCells(TextSegment textSegment) 1963private static TextSegment NewNormalizedTextSegment(TextPointer startPosition, TextPointer endPosition) 1987private static TextSegment NewNormalizedCellSegment(TableCell startCell, TableCell endCell)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (2)
350List<TextSegment> textSegments = range.TextSegments; 360TextSegment textSegment = textSegments[i];
src\Framework\System\windows\Documents\TextSegment.cs (1)
150internal static readonly TextSegment Null = new TextSegment();
src\Framework\System\windows\Documents\TextSelection.cs (6)
837TextSegment anchorWordRange; 838TextSegment cursorWordRange; 901private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange) 956TextSegment lastReenteredWordRange = TextPointerBase.GetWordRange(_reenterPosition); 1288TextSegment autoWordRange = TextRangeBase.GetAutoWord(this);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (10)
82TextSegment textSegment; 91List<TextSegment> textSegments = _selection.TextSegments; 118List<TextSegment> textSegments = _selection.TextSegments; 119TextSegment textSegment; 337List<TextSegment> rangeArray; 343rangeArray = new List<TextSegment>(1); 348rangeArray = new List<TextSegment>(1); 353rangeArray = new List<TextSegment>(2); 358_ranges = new ReadOnlyCollection<TextSegment>(rangeArray); 380private readonly ReadOnlyCollection<TextSegment> _ranges;
src\Framework\System\Windows\Documents\TextStore.cs (1)
947TextSegment lineRange = this.TextView.GetLineRange(navigator);