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