5 implementations of TextContainer
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
615
ITextContainer ITextPointer.
TextContainer
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
342
ITextContainer ITextPointer.
TextContainer
System\Windows\Documents\FixedTextPointer.cs (1)
547
ITextContainer ITextPointer.
TextContainer
System\Windows\Documents\NullTextNavigator.cs (1)
425
ITextContainer ITextPointer.
TextContainer
System\Windows\Documents\TextPointer.cs (1)
3631
ITextContainer ITextPointer.
TextContainer
134 references to TextContainer
PresentationFramework (134)
MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (5)
136
pageEl.Add(new FixedPageProxy(segment.Start.
TextContainer
.Parent, startPage + i));
465
if (!(start.
TextContainer
is FixedTextContainer ||
466
start.
TextContainer
is DocumentSequenceTextContainer))
484
if (anchor == null || !(anchor.Start.
TextContainer
is FixedTextContainer ||
485
anchor.Start.
TextContainer
is DocumentSequenceTextContainer))
MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (5)
181
DependencyObject document = pointer.
TextContainer
.Parent;
304
if (pointer.CompareTo(pointer.
TextContainer
.End) == 0)
337
IDocumentPaginatorSource idp = pointer.
TextContainer
.Parent as IDocumentPaginatorSource;
397
DependencyObject content = pointer.
TextContainer
.Parent as DependencyObject;
435
DependencyObject content = start.
TextContainer
.Parent as DependencyObject;
MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
271
FlowDocument content = currentStart.
TextContainer
.Parent as FlowDocument;
MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
248
startOffset = end.
TextContainer
.Start.GetOffsetToPosition(start);
249
endOffset = end.
TextContainer
.Start.GetOffsetToPosition(end);
MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
93
object textContainer = start.
TextContainer
;
652
object textContainer = start.
TextContainer
;
MS\Internal\Annotations\Component\HighlightComponent.cs (3)
336
ITextContainer textContainer = textAnchor.Start.
TextContainer
;
525
ITextContainer textContainer = textAnchor.Start.
TextContainer
;
584
ITextContainer textContainer = textAnchor.Start.
TextContainer
;
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (2)
484
ITextContainer textContainer = anchor.Start.
TextContainer
;
960
ITextContainer container = pos.
TextContainer
;
MS\Internal\Annotations\TextAnchor.cs (2)
107
if (textPointer.
TextContainer
!= this.Start.
TextContainer
)
MS\Internal\Documents\IFlowDocumentViewer.cs (2)
207
if (textSelection.Start != null && textSelection.Start.
TextContainer
== flowDocument.StructuralCache.TextContainer)
560
newTextSelection.AnchorPosition.
TextContainer
== flowDocument.StructuralCache.TextContainer)
MS\Internal\Documents\TextBoxView.cs (2)
1087
if (position.
TextContainer
!= _host.TextContainer)
2924
return position.
TextContainer
== _host.TextContainer &&
MS\Internal\Documents\TextDocumentView.cs (4)
524
if (position.
TextContainer
.Start.CompareTo(position) == 0 && position.LogicalDirection == LogicalDirection.Backward)
526
contains = (position.
TextContainer
.Start.CompareTo(segments[0].Start) == 0);
528
else if (position.
TextContainer
.End.CompareTo(position) == 0 && position.LogicalDirection == LogicalDirection.Forward)
530
contains = (position.
TextContainer
.End.CompareTo(segments[segments.Count - 1].End) == 0);
MS\Internal\LayoutDump.cs (2)
615
int cpStart = start.
TextContainer
.Start.GetOffsetToPosition(start);
616
int cpEnd = end.
TextContainer
.Start.GetOffsetToPosition(end);
MS\Internal\PtsHost\ContainerParagraph.cs (2)
1038
if(textPointer.
TextContainer
.Start.CompareTo(textPointer) > 0)
1102
Invariant.Assert(textPointer.CompareTo(textPointer.
TextContainer
.End) == 0);
MS\Internal\PtsHost\OptimalTextSource.cs (1)
193
return position.
TextContainer
.Start.GetOffsetToPosition(position);
System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
848
if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.
TextContainer
== textView.TextContainer)
System\Windows\Controls\PasswordTextNavigator.cs (1)
324
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
System\Windows\Controls\TextAdaptor.cs (2)
300
if (rangeStart.
TextContainer
!= _textContainer || rangeEnd.
TextContainer
!= _textContainer)
System\Windows\Controls\TextRangeAdaptor.cs (13)
284
if (tp.
TextContainer
.TextSelection != null)
286
readOnly = tp.
TextContainer
.TextSelection.TextEditor.IsReadOnly;
484
if (!position.
TextContainer
.IsReadOnly ||
511
if (rangeAdaptor == null || rangeAdaptor._start.
TextContainer
!= _start.
TextContainer
)
708
if (expandStart && _start.CompareTo(_start.
TextContainer
.Start) != 0)
710
_start = _start.
TextContainer
.Start.CreatePointer();
712
if (expandEnd && _end.CompareTo(_start.
TextContainer
.End) != 0)
714
_end = _start.
TextContainer
.End.CreatePointer();
958
if (position.CompareTo(GetInsertionPosition(position.
TextContainer
.End, LogicalDirection.Backward)) != 0)
960
position.MoveToPosition(position.
TextContainer
.End);
966
if (position.CompareTo(GetInsertionPosition(position.
TextContainer
.Start, LogicalDirection.Forward)) != 0)
968
position.MoveToPosition(position.
TextContainer
.Start);
System\Windows\Documents\DocumentSequenceTextContainer.cs (4)
362
if (position.
TextContainer
!= this)
384
if (cdb.ChildContainer == tp.
TextContainer
)
762
tpChildEnd = tsScan.ChildPointer.
TextContainer
.End;
1035
if (childTp.
TextContainer
!= originalPosition.TextContainer)
System\Windows\Documents\DocumentSequenceTextPointer.cs (13)
186
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
303
return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).
TextContainer
.TextView);
340
/// <see cref="ITextPointer.
TextContainer
"/>
352
return (((ITextPointer)this).
TextContainer
.TextView != null &&
353
((ITextPointer)this).
TextContainer
.TextView.IsValid &&
354
((ITextPointer)this).
TextContainer
.TextView.Contains(this));
364
ITextView textView = ((ITextPointer)this).
TextContainer
.TextView;
486
if (this.ChildPointer.
TextContainer
== tp.ChildPointer.
TextContainer
)
510
return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).
TextContainer
.TextView, count, true);
725
if (thisTp.ChildPointer.
TextContainer
== tp.ChildPointer.
TextContainer
)
1009
count += tpScan.ChildPointer.GetOffsetToPosition(tpScan.ChildPointer.
TextContainer
.End);
System\Windows\Documents\FixedFindEngine.cs (1)
48
IDocumentPaginatorSource paginatorSource = start.
TextContainer
.Parent as IDocumentPaginatorSource;
System\Windows\Documents\FixedTextContainer.cs (1)
329
if (position.
TextContainer
!= this)
System\Windows\Documents\FixedTextPointer.cs (8)
254
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
464
return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).
TextContainer
.TextView, count, true);
519
return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).
TextContainer
.TextView);
545
/// <see cref="ITextPointer.
TextContainer
"/>
559
return (((ITextPointer)this).
TextContainer
.TextView != null &&
560
((ITextPointer)this).
TextContainer
.TextView.IsValid &&
561
((ITextPointer)this).
TextContainer
.TextView.Contains(this));
573
ITextView textView = ((ITextPointer)this).
TextContainer
.TextView;
System\Windows\Documents\FlowDocument.cs (1)
925
if (textPointer != null && textPointer.
TextContainer
!= _structuralCache.TextContainer)
System\Windows\Documents\NullTextNavigator.cs (2)
174
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
423
/// <see cref="ITextPointer.
TextContainer
"/>
System\Windows\Documents\Speller.cs (3)
852
Document = {start.
TextContainer
.Parent.GetType().Name}
858
debugMessage += $"Xml = {new TextRange((TextPointer)start.
TextContainer
.Start, (TextPointer)start.
TextContainer
.End).Xml}";
System\Windows\Documents\SpellerStatusTable.cs (4)
571
if (e.ITextPosition.Offset + e.Count < e.ITextPosition.
TextContainer
.SymbolCount - 1)
691
Invariant.Assert(run.Position.CompareTo(run.Position.
TextContainer
.Start) == 0);
739
Debug.WriteLine($"{i}: {run.Position.
TextContainer
.Start.GetOffsetToPosition(run.Position)} {runType}");
768
ITextContainer textContainer = run.Position.
TextContainer
;
System\windows\Documents\TextEditorDragDrop.cs (4)
556
if (_dragSourceTextRange != null && _dragSourceTextRange.Start.
TextContainer
== selection.Start.
TextContainer
&&
585
_dragSourceTextRange != null && _dragSourceTextRange.Start.
TextContainer
== selection.Start.
TextContainer
)
System\windows\Documents\TextEditorSelection.cs (9)
1154
newMovingPosition = originalMovingPosition.
TextContainer
.End;
1178
newMovingPosition = newMovingPosition.
TextContainer
.End;
1452
ExtendSelectionAndBringIntoView(targetPosition.
TextContainer
.End, This);
1548
ExtendSelectionAndBringIntoView(targetPosition.
TextContainer
.Start, This);
1694
destination = destination.
TextContainer
.End;
1936
ExtendSelectionAndBringIntoView(e.NewPosition.
TextContainer
.Start, This);
1950
ExtendSelectionAndBringIntoView(e.NewPosition.
TextContainer
.End, This);
2371
TextSegment lineRange = position.
TextContainer
.TextView.GetLineRange(position);
2380
TextSegment lineRange = position.
TextContainer
.TextView.GetLineRange(position);
System\Windows\Documents\TextParentUndoUnit.cs (1)
123
ITextContainer textContainer = _selection.Start.
TextContainer
;
System\Windows\Documents\TextPointerBase.cs (9)
453
return thisPosition.
TextContainer
.Start.GetOffsetToPosition(thisPosition);
864
ITextView textView = thisPointer.
TextContainer
.TextView;
868
Invariant.Assert(thisPointer.
TextContainer
!= null, "Null TextContainer");
869
Invariant.Assert(thisPointer.
TextContainer
.Parent != null, "Null parent of TextContainer");
888
if (thisPointer.
TextContainer
.Parent is FlowDocument && textView.RenderScope is FlowDocumentView)
897
else if (thisPointer.
TextContainer
.Parent is Visual)
899
Invariant.Assert(textView.RenderScope == thisPointer.
TextContainer
.Parent || ((Visual)thisPointer.
TextContainer
.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope),
901
templatedParent = (Visual)thisPointer.
TextContainer
.Parent;
System\Windows\Documents\TextRange.cs (2)
98
ValidationHelper.VerifyPosition(position1.
TextContainer
, position1, "position1");
99
ValidationHelper.VerifyPosition(position1.
TextContainer
, position2, "position2");
System\Windows\Documents\TextRangeBase.cs (10)
67
if (textPointer.
TextContainer
!= thisRange.Start.
TextContainer
)
165
ValidationHelper.VerifyPosition(thisRange.Start.
TextContainer
, position1, "position1");
166
ValidationHelper.VerifyPosition(thisRange.Start.
TextContainer
, position2, "position2");
577
textContainer = thisRange.Start.
TextContainer
;
1422
newEnd = newStart.
TextContainer
.End; // set end of range to IsAfterLastParagraph position
1670
ITextContainer textContainer = thisRange.Start.
TextContainer
;
1915
if (thisRange._ContentGeneration == thisRange._TextSegments[0].Start.
TextContainer
.Generation)
1977
thisRange._ContentGeneration = thisRange._TextSegments[0].Start.
TextContainer
.Generation;
2068
thisRange._ContentGeneration = thisRange._TextSegments[0].Start.
TextContainer
.Generation;
System\Windows\Documents\TextRangeSerialization.cs (1)
1716
commonAncestor.MoveToPosition(commonAncestor.
TextContainer
.Start);
System\windows\Documents\TextSelection.cs (6)
623
if (movingPosition.CompareTo(movingPosition.
TextContainer
.End) != 0)
625
newMovingPosition = movingPosition.
TextContainer
.End;
728
if (_highlightLayer != null && thisSelection.Start.
TextContainer
.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer)
730
thisSelection.Start.
TextContainer
.Highlights.RemoveLayer(_highlightLayer);
1798
ITextContainer textContainer = ((ITextSelection)this).Start.
TextContainer
;
1825
ITextContainer textContainer = ((ITextSelection)this).Start.
TextContainer
;
System\Windows\Documents\ValidationHelper.cs (3)
45
if (position.
TextContainer
!= container)
60
if (startPosition.
TextContainer
!= endPosition.
TextContainer
)