5 implementations of TextContainer
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
617
ITextContainer ITextPointer.
TextContainer
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
346
ITextContainer ITextPointer.
TextContainer
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
565
ITextContainer ITextPointer.
TextContainer
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
427
ITextContainer ITextPointer.
TextContainer
src\Framework\System\Windows\Documents\TextPointer.cs (1)
3657
ITextContainer ITextPointer.
TextContainer
131 references to TextContainer
PresentationFramework (131)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (5)
140
pageEl.Add(new FixedPageProxy(segment.Start.
TextContainer
.Parent, startPage + i));
476
if (!(start.
TextContainer
is FixedTextContainer ||
477
start.
TextContainer
is DocumentSequenceTextContainer))
496
if (anchor == null || !(anchor.Start.
TextContainer
is FixedTextContainer ||
497
anchor.Start.
TextContainer
is DocumentSequenceTextContainer))
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (5)
187
DependencyObject document = pointer.
TextContainer
.Parent;
314
if (pointer.CompareTo(pointer.
TextContainer
.End) == 0)
347
IDocumentPaginatorSource idp = pointer.
TextContainer
.Parent as IDocumentPaginatorSource;
407
DependencyObject content = pointer.
TextContainer
.Parent as DependencyObject;
445
DependencyObject content = start.
TextContainer
.Parent as DependencyObject;
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
284
FlowDocument content = currentStart.
TextContainer
.Parent as FlowDocument;
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
254
startOffset = end.
TextContainer
.Start.GetOffsetToPosition(start);
255
endOffset = end.
TextContainer
.Start.GetOffsetToPosition(end);
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
97
object textContainer = start.
TextContainer
;
666
object textContainer = start.
TextContainer
;
src\Framework\MS\Internal\Annotations\Component\HighlightComponent.cs (3)
352
ITextContainer textContainer = textAnchor.Start.
TextContainer
;
550
ITextContainer textContainer = textAnchor.Start.
TextContainer
;
610
ITextContainer textContainer = textAnchor.Start.
TextContainer
;
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (2)
499
ITextContainer textContainer = anchor.Start.
TextContainer
;
982
ITextContainer container = pos.
TextContainer
;
src\Framework\MS\Internal\Annotations\TextAnchor.cs (2)
113
if (textPointer.
TextContainer
!= this.Start.
TextContainer
)
src\Framework\MS\Internal\Documents\IFlowDocumentViewer.cs (2)
208
if(textSelection.Start != null && textSelection.Start.
TextContainer
== flowDocument.StructuralCache.TextContainer)
561
newTextSelection.AnchorPosition.
TextContainer
== flowDocument.StructuralCache.TextContainer)
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
1091
if (position.
TextContainer
!= _host.TextContainer)
2902
return position.
TextContainer
== _host.TextContainer &&
src\Framework\MS\Internal\Documents\TextDocumentView.cs (4)
531
if (position.
TextContainer
.Start.CompareTo(position) == 0 && position.LogicalDirection == LogicalDirection.Backward)
533
contains = (position.
TextContainer
.Start.CompareTo(segments[0].Start) == 0);
535
else if (position.
TextContainer
.End.CompareTo(position) == 0 && position.LogicalDirection == LogicalDirection.Forward)
537
contains = (position.
TextContainer
.End.CompareTo(segments[segments.Count - 1].End) == 0);
src\Framework\MS\Internal\LayoutDump.cs (2)
618
int cpStart = start.
TextContainer
.Start.GetOffsetToPosition(start);
619
int cpEnd = end.
TextContainer
.Start.GetOffsetToPosition(end);
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (2)
1064
if(textPointer.
TextContainer
.Start.CompareTo(textPointer) > 0)
1128
Invariant.Assert(textPointer.CompareTo(textPointer.
TextContainer
.End) == 0);
src\Framework\MS\Internal\PtsHost\OptimalTextSource.cs (1)
197
return position.
TextContainer
.Start.GetOffsetToPosition(position);
src\Framework\System\Windows\Controls\FlowDocumentScrollViewer.cs (1)
854
if (textView != null && textView.IsValid && textView.RenderScope is IScrollInfo && contentPosition.
TextContainer
== textView.TextContainer)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
326
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (13)
292
if (tp.
TextContainer
.TextSelection != null)
294
readOnly = tp.
TextContainer
.TextSelection.TextEditor.IsReadOnly;
492
if (!position.
TextContainer
.IsReadOnly ||
519
if (rangeAdaptor == null || rangeAdaptor._start.
TextContainer
!= _start.
TextContainer
)
716
if (expandStart && _start.CompareTo(_start.
TextContainer
.Start) != 0)
718
_start = _start.
TextContainer
.Start.CreatePointer();
720
if (expandEnd && _end.CompareTo(_start.
TextContainer
.End) != 0)
722
_end = _start.
TextContainer
.End.CreatePointer();
967
if (position.CompareTo(GetInsertionPosition(position.
TextContainer
.End, LogicalDirection.Backward)) != 0)
969
position.MoveToPosition(position.
TextContainer
.End);
975
if (position.CompareTo(GetInsertionPosition(position.
TextContainer
.Start, LogicalDirection.Forward)) != 0)
977
position.MoveToPosition(position.
TextContainer
.Start);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (4)
369
if (position.
TextContainer
!= this)
391
if (cdb.ChildContainer == tp.
TextContainer
)
770
tpChildEnd = tsScan.ChildPointer.
TextContainer
.End;
1043
if (childTp.
TextContainer
!= originalPosition.TextContainer)
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (13)
190
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
307
return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).
TextContainer
.TextView);
344
/// <see cref="ITextPointer.
TextContainer
"/>
356
return (((ITextPointer)this).
TextContainer
.TextView != null &&
357
((ITextPointer)this).
TextContainer
.TextView.IsValid &&
358
((ITextPointer)this).
TextContainer
.TextView.Contains(this));
368
ITextView textView = ((ITextPointer)this).
TextContainer
.TextView;
490
if (this.ChildPointer.
TextContainer
== tp.ChildPointer.
TextContainer
)
514
return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).
TextContainer
.TextView, count, true);
732
if (thisTp.ChildPointer.
TextContainer
== tp.ChildPointer.
TextContainer
)
1026
count += tpScan.ChildPointer.GetOffsetToPosition(tpScan.ChildPointer.
TextContainer
.End);
src\Framework\System\Windows\Documents\FixedFindEngine.cs (1)
52
IDocumentPaginatorSource paginatorSource = start.
TextContainer
.Parent as IDocumentPaginatorSource;
src\Framework\System\Windows\Documents\FixedTextContainer.cs (1)
336
if (position.
TextContainer
!= this)
src\Framework\System\Windows\Documents\FixedTextPointer.cs (8)
269
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
479
return TextPointerBase.MoveToLineBoundary(this, ((ITextPointer)this).
TextContainer
.TextView, count, true);
537
return TextPointerBase.ValidateLayout(this, ((ITextPointer)this).
TextContainer
.TextView);
563
/// <see cref="ITextPointer.
TextContainer
"/>
577
return (((ITextPointer)this).
TextContainer
.TextView != null &&
578
((ITextPointer)this).
TextContainer
.TextView.IsValid &&
579
((ITextPointer)this).
TextContainer
.TextView.Contains(this));
591
ITextView textView = ((ITextPointer)this).
TextContainer
.TextView;
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
933
if (textPointer != null && textPointer.
TextContainer
!= _structuralCache.TextContainer)
src\Framework\System\Windows\Documents\NullTextNavigator.cs (2)
176
return new StaticTextPointer(((ITextPointer)this).
TextContainer
, ((ITextPointer)this).CreatePointer());
425
/// <see cref="ITextPointer.
TextContainer
"/>
src\Framework\System\Windows\Documents\Speller.cs (3)
922
"Document = " + start.
TextContainer
.Parent.GetType().Name + "\n";
926
debugMessage += "Xml = " + new TextRange((TextPointer)start.
TextContainer
.Start, (TextPointer)start.
TextContainer
.End).Xml;
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (3)
571
if (e.ITextPosition.Offset + e.Count < e.ITextPosition.
TextContainer
.SymbolCount - 1)
691
Invariant.Assert(run.Position.CompareTo(run.Position.
TextContainer
.Start) == 0);
769
ITextContainer textContainer = run.Position.
TextContainer
;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (4)
568
if (_dragSourceTextRange != null && _dragSourceTextRange.Start.
TextContainer
== selection.Start.
TextContainer
&&
597
_dragSourceTextRange != null && _dragSourceTextRange.Start.
TextContainer
== selection.Start.
TextContainer
)
src\Framework\System\windows\Documents\TextEditorSelection.cs (9)
1163
newMovingPosition = originalMovingPosition.
TextContainer
.End;
1187
newMovingPosition = newMovingPosition.
TextContainer
.End;
1461
ExtendSelectionAndBringIntoView(targetPosition.
TextContainer
.End, This);
1557
ExtendSelectionAndBringIntoView(targetPosition.
TextContainer
.Start, This);
1703
destination = destination.
TextContainer
.End;
1945
ExtendSelectionAndBringIntoView(e.NewPosition.
TextContainer
.Start, This);
1959
ExtendSelectionAndBringIntoView(e.NewPosition.
TextContainer
.End, This);
2380
TextSegment lineRange = position.
TextContainer
.TextView.GetLineRange(position);
2389
TextSegment lineRange = position.
TextContainer
.TextView.GetLineRange(position);
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (1)
128
ITextContainer textContainer = _selection.Start.
TextContainer
;
src\Framework\System\Windows\Documents\TextPointerBase.cs (9)
455
return thisPosition.
TextContainer
.Start.GetOffsetToPosition(thisPosition);
869
ITextView textView = thisPointer.
TextContainer
.TextView;
873
Invariant.Assert(thisPointer.
TextContainer
!= null, "Null TextContainer");
874
Invariant.Assert(thisPointer.
TextContainer
.Parent != null, "Null parent of TextContainer");
893
if (thisPointer.
TextContainer
.Parent is FlowDocument && textView.RenderScope is FlowDocumentView)
902
else if (thisPointer.
TextContainer
.Parent is Visual)
904
Invariant.Assert(textView.RenderScope == thisPointer.
TextContainer
.Parent || ((Visual)thisPointer.
TextContainer
.Parent).IsAncestorOf( /*descendant:*/textView.RenderScope),
906
templatedParent = (Visual)thisPointer.
TextContainer
.Parent;
src\Framework\System\Windows\Documents\TextRange.cs (2)
88
ValidationHelper.VerifyPosition(position1.
TextContainer
, position1, "position1");
89
ValidationHelper.VerifyPosition(position1.
TextContainer
, position2, "position2");
src\Framework\System\Windows\Documents\TextRangeBase.cs (10)
72
if (textPointer.
TextContainer
!= thisRange.Start.
TextContainer
)
170
ValidationHelper.VerifyPosition(thisRange.Start.
TextContainer
, position1, "position1");
171
ValidationHelper.VerifyPosition(thisRange.Start.
TextContainer
, position2, "position2");
588
textContainer = thisRange.Start.
TextContainer
;
1436
newEnd = newStart.
TextContainer
.End; // set end of range to IsAfterLastParagraph position
1698
ITextContainer textContainer = thisRange.Start.
TextContainer
;
1943
if (thisRange._ContentGeneration == thisRange._TextSegments[0].Start.
TextContainer
.Generation)
2005
thisRange._ContentGeneration = thisRange._TextSegments[0].Start.
TextContainer
.Generation;
2096
thisRange._ContentGeneration = thisRange._TextSegments[0].Start.
TextContainer
.Generation;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (1)
1736
commonAncestor.MoveToPosition(commonAncestor.
TextContainer
.Start);
src\Framework\System\windows\Documents\TextSelection.cs (6)
626
if (movingPosition.CompareTo(movingPosition.
TextContainer
.End) != 0)
628
newMovingPosition = movingPosition.
TextContainer
.End;
731
if (_highlightLayer != null && thisSelection.Start.
TextContainer
.Highlights.GetLayer(typeof(TextSelection)) == _highlightLayer)
733
thisSelection.Start.
TextContainer
.Highlights.RemoveLayer(_highlightLayer);
1806
ITextContainer textContainer = ((ITextSelection)this).Start.
TextContainer
;
1833
ITextContainer textContainer = ((ITextSelection)this).Start.
TextContainer
;
src\Framework\System\Windows\Documents\ValidationHelper.cs (3)
47
if (position.
TextContainer
!= container)
68
if (startPosition.
TextContainer
!= endPosition.
TextContainer
)