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