1 write to _rootNode
PresentationFramework (1)
System\Windows\Documents\TextContainer.cs (1)
3144_rootNode = new TextTreeRootNode(this);
49 references to _rootNode
PresentationFramework (49)
System\Windows\Documents\TextContainer.cs (49)
360_rootNode.DispatcherProcessingDisabled.Dispose(); 910TextTreeText.InsertText(_rootNode.RootTextBlock, symbolOffset, text); 1077TextTreeText.InsertElementEdges(_rootNode.RootTextBlock, symbolOffset, childSymbolCount); 1082TextTreeText.InsertText(_rootNode.RootTextBlock, symbolOffset, elementText); 1189TextTreeText.InsertObject(_rootNode.RootTextBlock, symbolOffset); 1293node = _rootNode; 1301Invariant.Assert(node.Generation != _rootNode.Generation || 1305node.Generation = _rootNode.Generation; 1392node = _rootNode; 1562_rootNode.LayoutGeneration++; 1580if (_rootNode.CaretUnitBoundaryCacheOffset != position.GetSymbolOffset()) 1582_rootNode.CaretUnitBoundaryCacheOffset = position.GetSymbolOffset(); 1583_rootNode.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(position); 1585if (!_rootNode.CaretUnitBoundaryCache && position.LogicalDirection == LogicalDirection.Backward) 1594_rootNode.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(positionForwardGravity); 1598return _rootNode.CaretUnitBoundaryCache; 1628startPosition = new TextPointer(this, _rootNode, ElementEdge.AfterStart, LogicalDirection.Backward); 1659endPosition = new TextPointer(this, _rootNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 1819return (_rootNode == null ? 2 : _rootNode.SymbolCount); 1828return (_rootNode == null ? 0 : _rootNode.IMECharCount); 1847Invariant.Assert(_rootNode != null, "Asking for TextBlocks before root node create!"); 1848return _rootNode.RootTextBlock; 1860Invariant.Assert(_rootNode != null, "Asking for Generation before root node create!"); 1861return _rootNode.Generation; 1871Invariant.Assert(_rootNode != null, "Asking for PositionGeneration before root node create!"); 1872return _rootNode.PositionGeneration; 1882Invariant.Assert(_rootNode != null, "Asking for LayoutGeneration before root node create!"); 1883return _rootNode.LayoutGeneration; 1919get { return _rootNode; } 1927return (_rootNode == null) ? null : (TextTreeNode)_rootNode.GetFirstContainedNode(); 1936return (_rootNode == null) ? null : (TextTreeNode)_rootNode.GetLastContainedNode(); 2372TextTreeText.RemoveText(_rootNode.RootTextBlock, symbolOffset, symbolCount); 2433elementText = TextTreeText.CutText(_rootNode.RootTextBlock, elementNode.GetSymbolOffset(this.Generation), elementNode.SymbolCount); 2858TextTreeText.RemoveElementEdges(_rootNode.RootTextBlock, symbolOffset, elementNode.SymbolCount); 2866elementText = TextTreeText.CutText(_rootNode.RootTextBlock, symbolOffset, elementNode.SymbolCount); 3142if (_rootNode == null) 3151Invariant.Assert(_rootNode != null, "Unexpected DemandCreateText call before position allocation."); 3153if (_rootNode.RootTextBlock == null) 3155_rootNode.RootTextBlock = new TextTreeRootTextBlock(); 3157TextTreeText.InsertElementEdges(_rootNode.RootTextBlock, 0, 0); 3187_rootNode.Generation++; 3191_rootNode.PositionGeneration++; 3250if (_rootNode.RootTextBlock != null) 3254for (textBlock = (TextTreeTextBlock)_rootNode.RootTextBlock.ContainedNode.GetMinSibling(); textBlock != null; textBlock = (TextTreeTextBlock)textBlock.GetNextNode()) 3315_rootNode.DispatcherProcessingDisabled = this.Dispatcher.DisableProcessing();