6 instantiations of TextContainer
PresentationFramework (6)
System\Windows\Controls\AccessText.cs (1)
511_textContainer = new TextContainer(this, false /* plainTextOnly */);
System\Windows\Controls\TextBlock.cs (1)
2878textContainer = new TextContainer(IsContentPresenterContainer ? null : this, false /* plainTextOnly */);
System\Windows\Controls\TextBox.cs (1)
89TextContainer container = new TextContainer(this, true /* plainTextOnly */);
System\Windows\Documents\FlowDocument.cs (1)
1222textContainer = new TextContainer(this, false /* plainTextOnly */);
System\Windows\Documents\TextContainer.cs (1)
2471tree = new TextContainer(null, false /* plainTextOnly */);
System\Windows\Documents\TextElement.cs (1)
1572tree = new TextContainer(null, false /* plainTextOnly */);
118 references to TextContainer
PresentationFramework (118)
MS\Internal\Documents\ContentHostHelper.cs (1)
40TextContainer textContainer;
MS\Internal\Documents\FlowDocumentView.cs (1)
755service = Document.StructuralCache.TextContainer as TextContainer;
MS\Internal\PtsHost\FlowDocumentPage.cs (1)
927Debug.Assert(_structuralCache.TextContainer is TextContainer);
MS\Internal\PtsHost\StructuralCache.cs (3)
36internal StructuralCache(FlowDocument owner, TextContainer textContainer) 313internal TextContainer TextContainer 533private TextContainer _textContainer;
MS\Internal\Text\ComplexLine.cs (2)
251TextContainer tree; 262tree = _owner.TextContainer as TextContainer;
System\Windows\Controls\AccessText.cs (2)
491private TextContainer TextContainer 774private TextContainer _textContainer;
System\Windows\Controls\FlowDocumentReader.cs (1)
2034TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\FlowDocumentScrollViewer.cs (2)
1897else if (serviceType == typeof(TextContainer) || serviceType == typeof(ITextContainer)) 1961TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
530else if (serviceType == typeof(TextContainer) || serviceType == typeof(ITextContainer))
System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
1779else if (serviceType == typeof(TextContainer) || serviceType == typeof(ITextContainer))
System\Windows\Controls\Primitives\TextBoxBase.cs (3)
1467internal void InitializeTextContainer(TextContainer textContainer) 1788internal TextContainer TextContainer 2227private TextContainer _textContainer;
System\Windows\Controls\SinglePageViewer.cs (1)
1560TextContainer textContainer = document.StructuralCache.TextContainer;
System\Windows\Controls\TextBlock.cs (12)
128if (!(_complexContent.TextContainer is TextContainer)) 155TextContainer textContainer = (TextContainer)_complexContent.TextContainer; 185TextContainer textContainer = (TextContainer)_complexContent.TextContainer; 283else if (serviceType == typeof(TextContainer)) 286return _complexContent.TextContainer as TextContainer; 1747if (_complexContent == null || !(_complexContent.TextContainer is TextContainer)) 1858if (_complexContent == null || !(_complexContent.TextContainer is TextContainer)) 3494if (textBlock._complexContent == null || !(textBlock._complexContent.TextContainer is TextContainer)) 3639Debug.Assert(_complexContent.TextContainer is TextContainer); 4107((TextContainer)text._complexContent.TextContainer).DeleteContentInternal((TextPointer)text._complexContent.TextContainer.Start, (TextPointer)text._complexContent.TextContainer.End);
System\Windows\Controls\TextBox.cs (1)
89TextContainer container = new TextContainer(this, true /* plainTextOnly */);
System\Windows\Documents\BlockUIContainer.cs (1)
77TextContainer textContainer = this.TextContainer;
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
74private TextContainer _textContainer;
System\Windows\Documents\DocumentSequenceTextContainer.cs (3)
219/// <see cref="TextContainer.Start"/> 232/// <see cref="TextContainer.End"/> 267/// <see cref="TextContainer.Parent"/>
System\Windows\Documents\FixedTextContainer.cs (3)
187/// <see cref="TextContainer.Start"/> 200/// <see cref="TextContainer.End"/> 235/// <see cref="TextContainer.Parent"/>
System\Windows\Documents\FlowDocument.cs (6)
125internal FlowDocument(TextContainer textContainer) 1151internal TextContainer TextContainer 1217private void Initialize(TextContainer textContainer) 1653TextContainer textContainer = _structuralCache.TextContainer; 1703else if (serviceType == typeof(TextContainer)) 1705return _structuralCache.TextContainer as TextContainer;
System\Windows\Documents\InlineUIContainer.cs (1)
110TextContainer textContainer = this.TextContainer;
System\Windows\Documents\List.cs (1)
234TextContainer textContainer = this.TextContainer;
System\Windows\Documents\Run.cs (1)
252TextContainer textContainer = run.TextContainer;
System\Windows\Documents\TextContainer.cs (4)
2425TextContainer tree; 3507internal ExtractChangeEventArgs(TextContainer textTree, TextPointer startPosition, TextTreeTextElementNode node, 3556internal TextContainer TextContainer { get { return _textTree; } } 3572private readonly TextContainer _textTree;
System\windows\Documents\TextEditor.cs (7)
65if (isUndoEnabled && _textContainer is TextContainer) 67((TextContainer)_textContainer).EnableUndo(_uiScope); 159if (_textContainer is TextContainer) 161((TextContainer)_textContainer).DisableUndo(_uiScope); 1140if (this.TextContainer is TextContainer) 1142undoManager = ((TextContainer)this.TextContainer).UndoManager; 1544if (_textContainer is TextContainer && TextServicesHost.Current != null)
System\Windows\Documents\TextElement.cs (19)
96TextContainer tree; 240TextContainer tree; 300TextContainer tree = EnsureTextContainer(); 323TextContainer tree; 339TextContainer tree = EnsureTextContainer(); 356TextContainer tree; 372TextContainer tree = EnsureTextContainer(); 389TextContainer tree; 405TextContainer tree = EnsureTextContainer(); 414TextContainer tree = EnsureTextContainer(); 430TextContainer tree; 446TextContainer tree = EnsureTextContainer(); 961TextContainer textContainer = EnsureTextContainer(); 996TextContainer tree; 1212internal TextContainer TextContainer 1504TextContainer tree; 1537TextContainer tree; 1560private TextContainer EnsureTextContainer() 1562TextContainer tree;
System\Windows\Documents\TextElementCollection.cs (6)
103TextContainer textContainer = this.TextContainer; 214TextContainer textContainer = this.TextContainer; 685internal TextContainer TextContainer 689TextContainer textContainer; 693textContainer = (TextContainer)((TextBlock)_owner).TextContainer; 786TextContainer textContainer = this.TextContainer;
System\Windows\Documents\TextPointer.cs (9)
283internal TextPointer(TextContainer textContainer, int offset, LogicalDirection direction) 299internal TextPointer(TextContainer tree, TextTreeNode node, ElementEdge edge) 305internal TextPointer(TextContainer tree, TextTreeNode node, ElementEdge edge, LogicalDirection direction) 1745internal static int GetTextInRun(TextContainer textContainer, int symbolOffset, TextTreeTextNode textNode, int nodeOffset, LogicalDirection direction, char[] textBuffer, int startIndex, int count) 2906internal static int GetSymbolOffset(TextContainer tree, TextTreeNode node, ElementEdge edge) 3778internal TextContainer TextContainer 3925private void Initialize(TextContainer tree, TextTreeNode node, ElementEdge edge, LogicalDirection gravity, uint generation, 4097private void MoveToNode(TextContainer tree, TextTreeNode node, ElementEdge edge) 4350private TextContainer _tree;
System\Windows\Documents\TextRangeBase.cs (1)
1324TextContainer textContainer = ((TextPointer)thisRange.Start).TextContainer;
System\windows\Documents\TextSelection.cs (1)
1801&& (textContainer is TextContainer || textContainer is PasswordTextContainer))
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
31internal TextTreeDeleteContentUndoUnit(TextContainer tree, TextPointer start, TextPointer end) : base(tree, start.GetSymbolOffset())
System\Windows\Documents\TextTreeDumper.cs (2)
46internal static void Dump(TextContainer tree) 59internal static void DumpFlat(TextContainer tree)
System\Windows\Documents\TextTreeExtractElementUndoUnit.cs (1)
23internal TextTreeExtractElementUndoUnit(TextContainer tree, TextTreeTextElementNode elementNode)
System\Windows\Documents\TextTreeInsertElementUndoUnit.cs (1)
28internal TextTreeInsertElementUndoUnit(TextContainer tree, int symbolOffset, bool deep) : base(tree, symbolOffset)
System\Windows\Documents\TextTreeInsertUndoUnit.cs (1)
27internal TextTreeInsertUndoUnit(TextContainer tree, int symbolOffset, int symbolCount) : base(tree, symbolOffset)
System\Windows\Documents\TextTreeNode.cs (1)
269internal TextContainer GetTextTree()
System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
26internal TextTreePropertyUndoUnit(TextContainer tree, int symbolOffset, PropertyRecord propertyRecord) : base(tree, symbolOffset)
System\Windows\Documents\TextTreeRootNode.cs (3)
30internal TextTreeRootNode(TextContainer tree) 347internal TextContainer TextContainer 441private readonly TextContainer _tree;
System\Windows\Documents\TextTreeText.cs (3)
45textLength = TextContainer.GetTextLength(text); 273length = TextContainer.GetTextLength(text); 333textEndOffset = TextContainer.GetTextLength(text);
System\Windows\Documents\TextTreeUndo.cs (5)
27internal static void CreateInsertUndoUnit(TextContainer tree, int symbolOffset, int symbolCount) 40internal static void CreateInsertElementUndoUnit(TextContainer tree, int symbolOffset, bool deep) 57TextContainer textContainer = element.TextContainer; 72internal static TextTreeDeleteContentUndoUnit CreateDeleteContentUndoUnit(TextContainer tree, TextPointer start, TextPointer end) 93internal static TextTreeExtractElementUndoUnit CreateExtractElementUndoUnit(TextContainer tree, TextTreeTextElementNode elementNode)
System\Windows\Documents\TextTreeUndoUnit.cs (3)
26internal TextTreeUndoUnit(TextContainer tree, int symbolOffset) 80protected TextContainer TextContainer 196private readonly TextContainer _tree;