2 implementations of TextSegments
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1300ReadOnlyCollection<TextSegment> ITextView.TextSegments
MS\Internal\Documents\TextViewBase.cs (1)
665ReadOnlyCollection<TextSegment> ITextView.TextSegments
35 references to TextSegments
PresentationFramework (35)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
292ReadOnlyCollection<TextSegment> ts = tv.TextSegments; 596if ((textView.TextSegments == null) || (textView.TextSegments.Count == 0)) 599start = textView.TextSegments[0].Start.CreatePointer(LogicalDirection.Forward); 600end = textView.TextSegments[textView.TextSegments.Count - 1].End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
305if (textView != null && textView.IsValid && TextDocumentView.Contains(pointer, textView.TextSegments))
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
269anchor = TextAnchor.TrimToIntersectionWith(anchor, textView.TextSegments);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
230IList<TextSegment> segments = textView.TextSegments;
MS\Internal\Documents\DocumentPageTextView.cs (2)
523/// <see cref="ITextView.TextSegments"/> 533return _pageTextView.TextSegments;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
136foreach (TextSegment textSegment in masterPageTextView.TextSegments)
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
387if (textView.TextSegments.Count == 0) 395position = textView.TextSegments[0].Start;
MS\Internal\Documents\MultiPageTextView.cs (1)
679/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextBoxView.cs (1)
1298/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextDocumentView.cs (1)
582/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextParagraphView.cs (1)
473/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextViewBase.cs (2)
315/// <see cref="ITextView.TextSegments"/> 663/// <see cref="ITextView.TextSegments"/>
MS\Internal\PtsHost\BreakRecordTable.cs (1)
272TextSegments = textView.TextSegments,
MS\Internal\PtsHost\FlowDocumentPage.cs (5)
364Invariant.Assert(_textView != null && ((ITextView)_textView).TextSegments.Count > 0); 365return new HostedElements(((ITextView)_textView).TextSegments); 985for (int segmentIndex = 0; segmentIndex < ((ITextView)_textView).TextSegments.Count; segmentIndex++) 987if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 988((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
775foreach (TextSegment textSegment in textView.TextSegments)
System\Windows\Controls\TextAdaptor.cs (2)
98ReadOnlyCollection<TextSegment> textSegments = textView.TextSegments; 529visibleTextSegments.AddRange(textView.TextSegments);
System\Windows\Controls\TextRangeAdaptor.cs (5)
676ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 693ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 914ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1135ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1184textSegments = pageTextView.TextSegments;
System\Windows\Documents\DocumentSequenceTextView.cs (1)
552ReadOnlyCollection<TextSegment> childSegments = ChildTextView.TextSegments;