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