1 write to _rootNode
PresentationFramework (1)
System\Windows\Documents\TextContainer.cs (1)
3145_rootNode = new TextTreeRootNode(this);
49 references to _rootNode
PresentationFramework (49)
System\Windows\Documents\TextContainer.cs (49)
361_rootNode.DispatcherProcessingDisabled.Dispose(); 911TextTreeText.InsertText(_rootNode.RootTextBlock, symbolOffset, text); 1078TextTreeText.InsertElementEdges(_rootNode.RootTextBlock, symbolOffset, childSymbolCount); 1083TextTreeText.InsertText(_rootNode.RootTextBlock, symbolOffset, elementText); 1190TextTreeText.InsertObject(_rootNode.RootTextBlock, symbolOffset); 1294node = _rootNode; 1302Invariant.Assert(node.Generation != _rootNode.Generation || 1306node.Generation = _rootNode.Generation; 1393node = _rootNode; 1563_rootNode.LayoutGeneration++; 1581if (_rootNode.CaretUnitBoundaryCacheOffset != position.GetSymbolOffset()) 1583_rootNode.CaretUnitBoundaryCacheOffset = position.GetSymbolOffset(); 1584_rootNode.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(position); 1586if (!_rootNode.CaretUnitBoundaryCache && position.LogicalDirection == LogicalDirection.Backward) 1595_rootNode.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(positionForwardGravity); 1599return _rootNode.CaretUnitBoundaryCache; 1629startPosition = new TextPointer(this, _rootNode, ElementEdge.AfterStart, LogicalDirection.Backward); 1660endPosition = new TextPointer(this, _rootNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 1820return (_rootNode == null ? 2 : _rootNode.SymbolCount); 1829return (_rootNode == null ? 0 : _rootNode.IMECharCount); 1848Invariant.Assert(_rootNode != null, "Asking for TextBlocks before root node create!"); 1849return _rootNode.RootTextBlock; 1861Invariant.Assert(_rootNode != null, "Asking for Generation before root node create!"); 1862return _rootNode.Generation; 1872Invariant.Assert(_rootNode != null, "Asking for PositionGeneration before root node create!"); 1873return _rootNode.PositionGeneration; 1883Invariant.Assert(_rootNode != null, "Asking for LayoutGeneration before root node create!"); 1884return _rootNode.LayoutGeneration; 1920get { return _rootNode; } 1928return (_rootNode == null) ? null : (TextTreeNode)_rootNode.GetFirstContainedNode(); 1937return (_rootNode == null) ? null : (TextTreeNode)_rootNode.GetLastContainedNode(); 2373TextTreeText.RemoveText(_rootNode.RootTextBlock, symbolOffset, symbolCount); 2434elementText = TextTreeText.CutText(_rootNode.RootTextBlock, elementNode.GetSymbolOffset(this.Generation), elementNode.SymbolCount); 2859TextTreeText.RemoveElementEdges(_rootNode.RootTextBlock, symbolOffset, elementNode.SymbolCount); 2867elementText = TextTreeText.CutText(_rootNode.RootTextBlock, symbolOffset, elementNode.SymbolCount); 3143if (_rootNode == null) 3152Invariant.Assert(_rootNode != null, "Unexpected DemandCreateText call before position allocation."); 3154if (_rootNode.RootTextBlock == null) 3156_rootNode.RootTextBlock = new TextTreeRootTextBlock(); 3158TextTreeText.InsertElementEdges(_rootNode.RootTextBlock, 0, 0); 3188_rootNode.Generation++; 3192_rootNode.PositionGeneration++; 3251if (_rootNode.RootTextBlock != null) 3255for (textBlock = (TextTreeTextBlock)_rootNode.RootTextBlock.ContainedNode.GetMinSibling(); textBlock != null; textBlock = (TextTreeTextBlock)textBlock.GetNextNode()) 3316_rootNode.DispatcherProcessingDisabled = this.Dispatcher.DisableProcessing();