2 implementations of TextSegments
PresentationFramework (2)
MS\Internal\Documents\TextBoxView.cs (1)
1257ReadOnlyCollection<TextSegment> ITextView.TextSegments
MS\Internal\Documents\TextViewBase.cs (1)
664ReadOnlyCollection<TextSegment> ITextView.TextSegments
35 references to TextSegments
PresentationFramework (35)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
291ReadOnlyCollection<TextSegment> ts = tv.TextSegments; 598if ((textView.TextSegments == null) || (textView.TextSegments.Count == 0)) 601start = textView.TextSegments[0].Start.CreatePointer(LogicalDirection.Forward); 602end = textView.TextSegments[textView.TextSegments.Count - 1].End.CreatePointer(LogicalDirection.Backward);
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (1)
304if (textView != null && textView.IsValid && TextDocumentView.Contains(pointer, textView.TextSegments))
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
268anchor = TextAnchor.TrimToIntersectionWith(anchor, textView.TextSegments);
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
229IList<TextSegment> segments = textView.TextSegments;
MS\Internal\Documents\DocumentPageTextView.cs (2)
522/// <see cref="ITextView.TextSegments"/> 532return _pageTextView.TextSegments;
MS\Internal\Documents\DocumentViewerHelper.cs (1)
135foreach (TextSegment textSegment in masterPageTextView.TextSegments)
MS\Internal\Documents\FlowDocumentPaginator.cs (2)
386if (textView.TextSegments.Count == 0) 394position = textView.TextSegments[0].Start;
MS\Internal\Documents\MultiPageTextView.cs (1)
678/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextBoxView.cs (1)
1255/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextDocumentView.cs (1)
581/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextParagraphView.cs (1)
472/// <see cref="ITextView.TextSegments"/>
MS\Internal\Documents\TextViewBase.cs (2)
314/// <see cref="ITextView.TextSegments"/> 662/// <see cref="ITextView.TextSegments"/>
MS\Internal\PtsHost\BreakRecordTable.cs (1)
271TextSegments = textView.TextSegments,
MS\Internal\PtsHost\FlowDocumentPage.cs (5)
363Invariant.Assert(_textView != null && ((ITextView)_textView).TextSegments.Count > 0); 364return new HostedElements(((ITextView)_textView).TextSegments); 978for (int segmentIndex = 0; segmentIndex < ((ITextView)_textView).TextSegments.Count; segmentIndex++) 980if (((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].Start) >= 0 && 981((ITextPointer)elementPosition).CompareTo(((ITextView)_textView).TextSegments[segmentIndex].End) < 0)
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
771foreach (TextSegment textSegment in textView.TextSegments)
System\Windows\Controls\TextAdaptor.cs (2)
97ReadOnlyCollection<TextSegment> textSegments = textView.TextSegments; 522visibleTextSegments.AddRange(textView.TextSegments);
System\Windows\Controls\TextRangeAdaptor.cs (5)
675ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 692ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 913ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1134ReadOnlyCollection<TextSegment> textSegments = pageTextView.TextSegments; 1183textSegments = pageTextView.TextSegments;
System\Windows\Documents\DocumentSequenceTextView.cs (1)
545ReadOnlyCollection<TextSegment> childSegments = ChildTextView.TextSegments;