48 instantiations of TextSegment
PresentationFramework (48)
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
385rangeSegment = new TextSegment(highlightSegment.Segment.End, rangeSegment.End); 411rangeSegment = new TextSegment(highlightSegment.Segment.Start, rangeSegment.End); 554TextSegment[] rangeArray = new TextSegment[] { new TextSegment(start, end) }; 642_segment = new TextSegment(start, end); 1074_contentSegments.Add(new TextSegment(segmentStart, segmentEnd));
MS\Internal\Annotations\TextAnchor.cs (2)
52_segments.Add(new TextSegment(segment.Start, segment.End)); 689return new TextSegment(start, end);
MS\Internal\Documents\TextBoxView.cs (2)
944return new TextSegment(start, end, true); 1267segments.Add(new TextSegment(start, end, true));
MS\Internal\Documents\TextContainerHelper.cs (2)
90segments.Add(new TextSegment( 100segments.Add(new TextSegment(
MS\Internal\Documents\TextDocumentView.cs (4)
2301lineRange = new TextSegment(((TextParagraphResult)paragraph).EndPosition, ((TextParagraphResult)paragraph).EndPosition, true); 2308lineRange = new TextSegment(lines[lineIndex].StartPosition, lines[lineIndex].GetContentEndPosition(), true); 2361lineRange = new TextSegment(blockUIContainer.ContentStart.CreatePointer(LogicalDirection.Forward), blockUIContainer.ContentEnd.CreatePointer(LogicalDirection.Backward)); 3246segments.Add(new TextSegment(_textContainer.Start, segmentEnd, true));
MS\Internal\Documents\TextParagraphView.cs (2)
272return new TextSegment(lines[lineIndex].StartPosition, lines[lineIndex].GetContentEndPosition(), true); 479segments.Add(new TextSegment(_textContainer.Start, _textContainer.End, true));
System\Windows\Controls\TextAdaptor.cs (1)
534visibleTextSegments.Add(new TextSegment(visibleStart, visibleEnd, true));
System\Windows\Controls\TextBlock.cs (1)
1857TextSegment textSegment = new TextSegment(_complexContent.TextContainer.Start, _complexContent.TextContainer.End);
System\Windows\Documents\DocumentSequenceTextContainer.cs (2)
747rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd)); 767rangeArray.Add(new TextSegment(tpChildStart, tpChildEnd));
System\Windows\Documents\DocumentSequenceTextView.cs (2)
369return new TextSegment(tpStart, tpEnd, true); 554parentSegments.Add(new TextSegment(ptpStart, ptpEnd,true));
System\Windows\Documents\FixedTextView.cs (3)
583 return new TextSegment(position, position, true); 614return new TextSegment(begin, end, true); 718list.Add(new TextSegment(this.Start, this.End, true));
System\Windows\Documents\Highlights.cs (1)
365ranges.Add(new TextSegment(highlightRangeStart.CreateDynamicTextPointer(LogicalDirection.Forward), highlightTransitionPosition.CreateDynamicTextPointer(LogicalDirection.Forward)));
System\Windows\Documents\SpellerHighlightLayer.cs (1)
205list.Add(new TextSegment(start, end));
System\windows\Documents\TextEditorSelection.cs (2)
116lineRange = new TextSegment(lineStart, lineEnd); 122return new TextSegment(textRange.Start, textRange.End);
System\Windows\Documents\TextPointerBase.cs (2)
533return new TextSegment(thisPosition, thisPosition); 580return new TextSegment(wordStart, wordEnd);
System\Windows\Documents\TextRangeBase.cs (1)
1778thisRange._TextSegments.Add(new TextSegment(start, end));
System\Windows\Documents\TextRangeEditTables.cs (3)
1971return new TextSegment(startPosition, endPosition); 1975return new TextSegment(startPosition, startPosition); 2003return new TextSegment(start, end);
System\windows\Documents\TextSegment.cs (1)
146internal static readonly TextSegment Null = new TextSegment();
System\windows\Documents\TextSelection.cs (7)
893anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 894cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 950anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 951cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 969anchorWordRange = new TextSegment(anchorPosition, anchorPosition); 975cursorWordRange = new TextSegment(cursorPosition, cursorPosition); 987cursorWordRange = new TextSegment(cursorPosition, cursorPosition);
System\windows\Documents\TextSelectionHighlightLayer.cs (4)
335rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd)); 340rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 345rangeArray.Add(new TextSegment(invalidRangeLeftStart, invalidRangeLeftEnd)); 346rangeArray.Add(new TextSegment(invalidRangeRightStart, invalidRangeRightEnd));
263 references to TextSegment
PresentationFramework (263)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (5)
86IList<TextSegment> textSegments = CheckSelection(selection); 92foreach (TextSegment segment in textSegments) 291ReadOnlyCollection<TextSegment> ts = tv.TextSegments; 426private IList<TextSegment> CheckSelection(object selection) 430IList<TextSegment> textSegments = null;
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
107IList<TextSegment> segments; 153IList<TextSegment> segments; 356internal static void CheckSelection(object selection, out ITextPointer start, out ITextPointer end, out IList<TextSegment> segments) 416internal static List<ITextView> GetDocumentPageTextViews(TextSegment segment)
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
131IList<TextSegment> textSegments = null; 514private void GetTextSegmentValues(TextSegment segment, ITextPointer elementStart, ITextPointer elementEnd, out int startOffset, out int endOffset)
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
229IList<TextSegment> segments = textView.TextSegments;
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (17)
341ReadOnlyCollection<TextSegment> rangeSegments = highlightRange.Range.TextSegments; 348IEnumerator<TextSegment> rangeEnumerator = rangeSegments.GetEnumerator(); 349TextSegment rangeSegment = rangeEnumerator.MoveNext() ? rangeEnumerator.Current : TextSegment.Null; 380rangeSegment = next ? rangeEnumerator.Current : TextSegment.Null; 419rangeSegment = rangeEnumerator.MoveNext() ? rangeEnumerator.Current : TextSegment.Null; 554TextSegment[] rangeArray = new TextSegment[] { new TextSegment(start, end) }; 556_ranges = new ReadOnlyCollection<TextSegment>(rangeArray); 578private readonly ReadOnlyCollection<TextSegment> _ranges; 915private void GetSegmentGeometry(GeometryGroup geometry, TextSegment segment, ITextView parentView) 935private Geometry GetPageGeometry(TextSegment segment, ITextView view, ITextView parentView) 1105foreach (TextSegment segment in _contentSegments) 1135internal TextSegment Segment 1195private TextSegment _segment; 1196private List<TextSegment> _contentSegments = new List<TextSegment>(1);
MS\Internal\Annotations\TextAnchor.cs (34)
50foreach (TextSegment segment in anchor.TextSegments) 142TextSegment newSegment = CreateNormalizedSegment(start, end); 187internal bool IsOverlapping(ICollection<TextSegment> textSegments) 193TextSegment ourSegment, theirSegment; 195IEnumerator<TextSegment> ourEnumerator = _segments.GetEnumerator(); 196IEnumerator<TextSegment> theirEnumerator = textSegments.GetEnumerator(); 258foreach (TextSegment segment in otherAnchor.TextSegments) 277internal static TextAnchor TrimToRelativeComplement(TextAnchor anchor, ICollection<TextSegment> textSegments) 284IEnumerator<TextSegment> enumerator = textSegments.GetEnumerator(); 287TextSegment current; 288TextSegment otherSegment = TextSegment.Null; 291Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 379internal static TextAnchor TrimToIntersectionWith(TextAnchor anchor, ICollection<TextSegment> textSegments) 385TextSegment currentSegment, otherSegment = TextSegment.Null; 388IEnumerator<TextSegment> enumerator = textSegments.GetEnumerator(); 393Invariant.Assert(otherSegment.Equals(TextSegment.Null) || otherSegment.Equals(enumerator.Current) || otherSegment.End.CompareTo(enumerator.Current.Start) <= 0, "TextSegments are overlapping or not ordered."); 557internal ReadOnlyCollection<TextSegment> TextSegments 589private static ICollection<TextSegment> SortTextSegments(ICollection<TextSegment> textSegments, bool excludeZeroLength) 593List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count); 601TextSegment segment = orderedList[i]; 624private void InsertSegment(TextSegment newSegment) 650private static TextSegment CreateNormalizedSegment(ITextPointer start, ITextPointer end) 746private List<TextSegment> _segments = new List<TextSegment>(1); 763private class TextSegmentComparer : IComparer<TextSegment> 771public int Compare(TextSegment x, TextSegment y) 773if (x.Equals(TextSegment.Null)) 776if (y.Equals(TextSegment.Null)) 785if (y.Equals(TextSegment.Null))
MS\Internal\Documents\DocumentPageTextView.cs (4)
289internal override TextSegment GetLineRange(ITextPointer position) 298return TextSegment.Null; 524internal override ReadOnlyCollection<TextSegment> TextSegments 530return ReadOnlyCollection<TextSegment>.Empty;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
135foreach (TextSegment textSegment in masterPageTextView.TextSegments)
MS\Internal\Documents\HostedElements.cs (2)
23internal HostedElements(ReadOnlyCollection<TextSegment> textSegments) 202private ReadOnlyCollection<TextSegment> _textSegments;
MS\Internal\Documents\MultiPageTextView.cs (10)
154ReadOnlyCollection<TextSegment> textSegments = _pageTextViews[i].TextSegments; 158TextSegment textSegment = textSegments[segmentIndex]; 279internal override TextSegment GetLineRange(ITextPointer position) 281TextSegment textSegment = TextSegment.Null; 680internal override ReadOnlyCollection<TextSegment> TextSegments 684List<TextSegment> textSegments = new List<TextSegment>(); 693return new ReadOnlyCollection<TextSegment>(textSegments); 869ReadOnlyCollection<TextSegment> segments;
MS\Internal\Documents\TextBoxView.cs (6)
934TextSegment ITextView.GetLineRange(ITextPointer position) 1257ReadOnlyCollection<TextSegment> ITextView.TextSegments 1261List<TextSegment> segments = new List<TextSegment>(1); 1269return new ReadOnlyCollection<TextSegment>(segments); 1444foreach (TextSegment segment in args.Ranges)
MS\Internal\Documents\TextContainerHelper.cs (6)
78internal ReadOnlyCollection<TextSegment> GetTextSegments() 80List<TextSegment> segments; 83segments = new List<TextSegment>(); 89segments = new List<TextSegment>(1); 97segments = new List<TextSegment>(_size); 107return new ReadOnlyCollection<TextSegment>(segments);
MS\Internal\Documents\TextDocumentView.cs (23)
146ReadOnlyCollection<TextSegment> textSegments = TextSegments; 149TextSegment textSegment = textSegments[segmentIndex]; 334internal override TextSegment GetLineRange(ITextPointer position) 459internal static bool Contains(ITextPointer position, ReadOnlyCollection<TextSegment> segments) 469foreach (TextSegment segment in segments) 583internal override ReadOnlyCollection<TextSegment> TextSegments 590return ReadOnlyCollection<TextSegment>.Empty; 595private ReadOnlyCollection<TextSegment> TextSegmentsCore 2234private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ParagraphResult> paragraphs, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2238TextSegment lineRange = TextSegment.Null; 2269private TextSegment GetLineRangeFromPosition(ParagraphResult paragraph, ITextPointer position) 2271TextSegment lineRange = TextSegment.Null; 2370private TextSegment GetLineRangeFromPosition(ReadOnlyCollection<ColumnResult> columns, ReadOnlyCollection<ParagraphResult> floatingElements, ITextPointer position) 2380return TextSegment.Null; 3072ReadOnlyCollection<TextSegment> segments = this.TextSegmentsCore; 3226private ReadOnlyCollection<TextSegment> GetTextSegments() 3228ReadOnlyCollection<TextSegment> textSegments; 3245List<TextSegment> segments = new List<TextSegment>(1); 3247textSegments = new ReadOnlyCollection<TextSegment>(segments); 3522private ReadOnlyCollection<TextSegment> _segments;
MS\Internal\Documents\TextParagraphView.cs (5)
252internal override TextSegment GetLineRange(ITextPointer position) 474internal override ReadOnlyCollection<TextSegment> TextSegments 478List<TextSegment> segments = new List<TextSegment>(1); 480return new ReadOnlyCollection<TextSegment>(segments);
MS\Internal\Documents\TextViewBase.cs (4)
99internal abstract TextSegment GetLineRange(ITextPointer position); 316internal abstract ReadOnlyCollection<TextSegment> TextSegments { get; } 536TextSegment ITextView.GetLineRange(ITextPointer position) 664ReadOnlyCollection<TextSegment> ITextView.TextSegments
MS\Internal\PtsHost\BreakRecordTable.cs (4)
118ReadOnlyCollection<TextSegment> textSegments; 434ReadOnlyCollection<TextSegment> textSegments; 456foreach (TextSegment textSegment in textSegments) 506public ReadOnlyCollection<TextSegment> TextSegments;
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
369return new HostedElements(ReadOnlyCollection<TextSegment>.Empty);
System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
453return new HostedElements(ReadOnlyCollection<TextSegment>.Empty);
System\Windows\Annotations\AnnotationHelper.cs (1)
623IList<TextSegment> textSegments = selection.TextSegments;
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
771foreach (TextSegment textSegment in textView.TextSegments)
System\Windows\Controls\TextAdaptor.cs (4)
97ReadOnlyCollection<TextSegment> textSegments = textView.TextSegments; 135TextSegment lineRange = textView.GetLineRange(position); 511List<TextSegment> visibleTextSegments = new List<TextSegment>();
System\Windows\Controls\TextBlock.cs (7)
1852return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0))); 1856System.Collections.Generic.List<TextSegment> textSegmentsList = new System.Collections.Generic.List<TextSegment>(1); 1857TextSegment textSegment = new TextSegment(_complexContent.TextContainer.Start, _complexContent.TextContainer.End); 1859ReadOnlyCollection<TextSegment> textSegments = new ReadOnlyCollection<TextSegment>(textSegmentsList);
System\Windows\Controls\TextRangeAdaptor.cs (7)
601TextSegment lineRange = textView.GetLineRange(_start); 623TextSegment lineRange = textView.GetLineRange(_end); 675ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 692ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 784TextSegment lineRange = textView.GetLineRange(position); 913ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1134ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments;
System\windows\Documents\CaretElement.cs (2)
459List<TextSegment> textSegments = _textEditor.Selection.TextSegments; 463TextSegment segment = textSegments[i];
System\Windows\Documents\CompositionAdorner.cs (1)
574TextSegment textSegment = _textView.GetLineRange(endLinePointer);
System\Windows\Documents\DocumentSequenceTextContainer.cs (9)
695Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 713List<TextSegment> rangeArray = new List<TextSegment>(4); 716TextSegment ts = (TextSegment)args.Ranges[idxScan]; 735lastBlock.ChildHighlightLayer.RaiseHighlightChangedEvent(new ReadOnlyCollection<TextSegment>(rangeArray)); 752cdbScan.ChildHighlightLayer.RaiseHighlightChangedEvent(new ReadOnlyCollection<TextSegment>(rangeArray)); 779cdbScan.ChildHighlightLayer.RaiseHighlightChangedEvent(new ReadOnlyCollection<TextSegment>(rangeArray));
System\Windows\Documents\DocumentSequenceTextView.cs (10)
349internal override TextSegment GetLineRange(ITextPointer position) 364TextSegment childTR = ChildTextView.GetLineRange(tpLine.ChildPointer.CreatePointer(position.LogicalDirection)); 374return TextSegment.Null; 539internal override ReadOnlyCollection<TextSegment> TextSegments 545ReadOnlyCollection<TextSegment> childSegments = ChildTextView.TextSegments; 548List<TextSegment> parentSegments = new List<TextSegment>(childSegments.Count); 549foreach (TextSegment segment in childSegments) 556_textSegments = new ReadOnlyCollection<TextSegment>(parentSegments); 619private ReadOnlyCollection<TextSegment> _textSegments;
System\Windows\Documents\FixedDocument.cs (4)
1034Debug.Assert(args.Ranges.Count > 0 && ((TextSegment)args.Ranges[0]).Start.CompareTo(((TextSegment)args.Ranges[0]).End) < 0); 1139TextSegment textSegment = (TextSegment)ranges[i];
System\Windows\Documents\FixedTextView.cs (6)
574internal override TextSegment GetLineRange(ITextPointer position) 711internal override ReadOnlyCollection<TextSegment> TextSegments 717List<TextSegment> list = new List<TextSegment>(1); 719_textSegments = new ReadOnlyCollection<TextSegment>(list); 1273private ReadOnlyCollection<TextSegment> _textSegments;
System\Windows\Documents\FlowDocument.cs (2)
1376TextSegment textSegment; 1412textSegment = (TextSegment)args.Ranges[i];
System\Windows\Documents\Highlights.cs (5)
336List<TextSegment> ranges; 345ranges = new List<TextSegment>(); 370Changed(this, new LayerHighlightChangedEventArgs(new ReadOnlyCollection<TextSegment>(ranges), highlightLayer.OwnerType)); 408internal LayerHighlightChangedEventArgs(ReadOnlyCollection<TextSegment> ranges, Type ownerType) 433private readonly ReadOnlyCollection<TextSegment> _ranges;
System\Windows\Documents\ITextRange.cs (2)
248List<TextSegment> TextSegments { get; } 376List<TextSegment> _TextSegments { get; set; }
System\Windows\Documents\ITextView.cs (2)
326TextSegment GetLineRange(ITextPointer position); 521ReadOnlyCollection<TextSegment> TextSegments { get; }
System\Windows\Documents\SpellerHighlightLayer.cs (4)
200List<TextSegment> list; 204list = new List<TextSegment>(1); 207_ranges = new ReadOnlyCollection<TextSegment>(list); 229private readonly ReadOnlyCollection<TextSegment> _ranges;
System\windows\Documents\TextEditorCharacters.cs (1)
136TextSegment autoWordRange = TextRangeBase.GetAutoWord(This.Selection);
System\windows\Documents\TextEditorDragDrop.cs (3)
457TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(this.TextView, dropPosition); 470TextSegment wordSegment = TextPointerBase.GetWordRange(dropPosition); 612TextSegment textSegment = selection._TextSegments[i];
System\windows\Documents\TextEditorSelection.cs (9)
102internal static TextSegment GetNormalizedLineRange(ITextView textView, ITextPointer position) 104TextSegment lineRange = textView.GetLineRange(position); 790TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, startPositionInner); 841TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, endPositionInner); 1593TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, movingPositionInner); 1638TextSegment lineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, movingPositionInner); 1661TextSegment anchorLineRange = TextEditorSelection.GetNormalizedLineRange(This.TextView, This.Selection.AnchorPosition); 2355TextSegment lineRange = position.TextContainer.TextView.GetLineRange(position); 2364TextSegment lineRange = position.TextContainer.TextView.GetLineRange(position);
System\Windows\Documents\TextPointer.cs (1)
1603TextSegment lineRange = _tree.TextView.GetLineRange(this);
System\Windows\Documents\TextPointerBase.cs (4)
507internal static TextSegment GetWordRange(ITextPointer thisPosition) 521internal static TextSegment GetWordRange(ITextPointer thisPosition, LogicalDirection direction) 689TextSegment lineSegment = textView.GetLineRange(position); 833TextSegment lineRange = textView.GetLineRange(position);
System\Windows\Documents\TextRange.cs (4)
351List<TextSegment> ITextRange.TextSegments 506List<TextSegment> ITextRange._TextSegments 1621TextSegment textSegment = _textSegments[i]; 1883private List<TextSegment> _textSegments;
System\Windows\Documents\TextRangeBase.cs (11)
193TextSegment wordRange = TextPointerBase.GetWordRange(normalizedPosition); 201internal static TextSegment GetAutoWord(ITextRange thisRange) 203TextSegment autoWordRange = TextSegment.Null; 219autoWordRange = TextSegment.Null; 396TextSegment textSegment = thisRange._TextSegments[i]; 465TextSegment textSegment = thisRange._TextSegments[i]; 1219internal static List<TextSegment> GetTextSegments(ITextRange thisRange) 1267TextSegment textSegment; 1777thisRange._TextSegments = new List<TextSegment>(1); 1982List<TextSegment> textSegments;
System\Windows\Documents\TextRangeEditTables.cs (13)
279internal static List<TextSegment> BuildTableRange( 326private static List<TextSegment> BuildCellSelection(TableCell anchorCell, TableCell movingCell) 338List<TextSegment> cellRange = new List<TextSegment>(lastRowIndex - firstRowIndex + 1); 370private static List<TextSegment> BuildCrossTableSelection( 374List<TextSegment> textSegments = new List<TextSegment>(1); 400List<TextSegment> textSegments = range._TextSegments; 406TextSegment segment = textSegments[i]; 975List<TextSegment> textSegments = TextRangeEditTables.BuildTableRange( 1075private static void ClearTableCells(TextSegment textSegment) 1961private static TextSegment NewNormalizedTextSegment(TextPointer startPosition, TextPointer endPosition) 1985private static TextSegment NewNormalizedCellSegment(TableCell startCell, TableCell endCell)
System\Windows\Documents\TextRangeSerialization.cs (2)
337List<TextSegment> textSegments = range.TextSegments; 347TextSegment textSegment = textSegments[i];
System\windows\Documents\TextSegment.cs (1)
146internal static readonly TextSegment Null = new TextSegment();
System\windows\Documents\TextSelection.cs (6)
815TextSegment anchorWordRange; 816TextSegment cursorWordRange; 879private void IdentifyWordsOnSelectionEnds(ITextPointer anchorPosition, ITextPointer cursorPosition, bool forceWordSelection, out TextSegment anchorWordRange, out TextSegment cursorWordRange) 934TextSegment lastReenteredWordRange = TextPointerBase.GetWordRange(_reenterPosition); 1266TextSegment autoWordRange = TextRangeBase.GetAutoWord(this);
System\windows\Documents\TextSelectionHighlightLayer.cs (10)
74TextSegment textSegment; 83List<TextSegment> textSegments = _selection.TextSegments; 109List<TextSegment> textSegments = _selection.TextSegments; 110TextSegment textSegment; 328List<TextSegment> rangeArray; 334rangeArray = new List<TextSegment>(1); 339rangeArray = new List<TextSegment>(1); 344rangeArray = new List<TextSegment>(2); 349_ranges = new ReadOnlyCollection<TextSegment>(rangeArray); 371private readonly ReadOnlyCollection<TextSegment> _ranges;
System\Windows\Documents\TextStore.cs (1)
1072TextSegment lineRange = this.TextView.GetLineRange(navigator);