2 implementations of TextSegments
PresentationFramework (2)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1302ReadOnlyCollection<TextSegment> ITextView.TextSegments
src\Framework\MS\Internal\Documents\TextViewBase.cs (1)
669ReadOnlyCollection<TextSegment> ITextView.TextSegments
35 references to TextSegments
PresentationFramework (35)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
313ReadOnlyCollection<TextSegment> ts = tv.TextSegments; 623if ((textView.TextSegments == null) || (textView.TextSegments.Count == 0)) 626start = textView.TextSegments[0].Start.CreatePointer(LogicalDirection.Forward); 627end = textView.TextSegments[textView.TextSegments.Count - 1].End.CreatePointer(LogicalDirection.Backward);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
324if (textView != null && textView.IsValid && TextDocumentView.Contains(pointer, textView.TextSegments))
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
292anchor = TextAnchor.TrimToIntersectionWith(anchor, textView.TextSegments);
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
248IList<TextSegment> segments = textView.TextSegments;
src\Framework\MS\Internal\Documents\DocumentPageTextView.cs (2)
527/// <see cref="ITextView.TextSegments"/> 537return _pageTextView.TextSegments;
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
153foreach (TextSegment textSegment in masterPageTextView.TextSegments)
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (2)
405if (textView.TextSegments.Count == 0) 413position = textView.TextSegments[0].Start;
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (1)
686/// <see cref="ITextView.TextSegments"/>
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
1300/// <see cref="ITextView.TextSegments"/>
src\Framework\MS\Internal\Documents\TextDocumentView.cs (1)
592/// <see cref="ITextView.TextSegments"/>
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
504/// <see cref="ITextView.TextSegments"/>
src\Framework\MS\Internal\Documents\TextViewBase.cs (2)
319/// <see cref="ITextView.TextSegments"/> 667/// <see cref="ITextView.TextSegments"/>
src\Framework\MS\Internal\PtsHost\BreakRecordTable.cs (1)
275entry.TextSegments = textView.TextSegments;
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (5)
374Invariant.Assert(_textView != null && ((ITextView)_textView).TextSegments.Count > 0); 375return new HostedElements(((ITextView)_textView).TextSegments); 1015for (int segmentIndex = 0; segmentIndex < ((ITextView)_textView).TextSegments.Count; segmentIndex++) 1017if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 1018((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
803foreach (TextSegment textSegment in textView.TextSegments)
src\Framework\System\Windows\Controls\TextAdaptor.cs (2)
109ReadOnlyCollection<TextSegment> textSegments = textView.TextSegments; 513visibleTextSegments.AddRange(textView.TextSegments);
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (5)
686ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 703ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 924ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1146ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1195textSegments = pageTextView.TextSegments;
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (1)
575ReadOnlyCollection<TextSegment> childSegments = ChildTextView.TextSegments;