1 write to _rootNode
PresentationFramework (1)
System\Windows\Documents\TextContainer.cs (1)
3177_rootNode = new TextTreeRootNode(this);
49 references to _rootNode
PresentationFramework (49)
System\Windows\Documents\TextContainer.cs (49)
366_rootNode.DispatcherProcessingDisabled.Dispose(); 916TextTreeText.InsertText(_rootNode.RootTextBlock, symbolOffset, text); 1086TextTreeText.InsertElementEdges(_rootNode.RootTextBlock, symbolOffset, childSymbolCount); 1091TextTreeText.InsertText(_rootNode.RootTextBlock, symbolOffset, elementText); 1198TextTreeText.InsertObject(_rootNode.RootTextBlock, symbolOffset); 1305node = _rootNode; 1313Invariant.Assert(node.Generation != _rootNode.Generation || 1317node.Generation = _rootNode.Generation; 1404node = _rootNode; 1574_rootNode.LayoutGeneration++; 1592if (_rootNode.CaretUnitBoundaryCacheOffset != position.GetSymbolOffset()) 1594_rootNode.CaretUnitBoundaryCacheOffset = position.GetSymbolOffset(); 1595_rootNode.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(position); 1597if (!_rootNode.CaretUnitBoundaryCache && position.LogicalDirection == LogicalDirection.Backward) 1606_rootNode.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(positionForwardGravity); 1610return _rootNode.CaretUnitBoundaryCache; 1640startPosition = new TextPointer(this, _rootNode, ElementEdge.AfterStart, LogicalDirection.Backward); 1671endPosition = new TextPointer(this, _rootNode, ElementEdge.BeforeEnd, LogicalDirection.Forward); 1831return (_rootNode == null ? 2 : _rootNode.SymbolCount); 1840return (_rootNode == null ? 0 : _rootNode.IMECharCount); 1859Invariant.Assert(_rootNode != null, "Asking for TextBlocks before root node create!"); 1860return _rootNode.RootTextBlock; 1872Invariant.Assert(_rootNode != null, "Asking for Generation before root node create!"); 1873return _rootNode.Generation; 1883Invariant.Assert(_rootNode != null, "Asking for PositionGeneration before root node create!"); 1884return _rootNode.PositionGeneration; 1894Invariant.Assert(_rootNode != null, "Asking for LayoutGeneration before root node create!"); 1895return _rootNode.LayoutGeneration; 1931get { return _rootNode; } 1939return (_rootNode == null) ? null : (TextTreeNode)_rootNode.GetFirstContainedNode(); 1948return (_rootNode == null) ? null : (TextTreeNode)_rootNode.GetLastContainedNode(); 2396TextTreeText.RemoveText(_rootNode.RootTextBlock, symbolOffset, symbolCount); 2460elementText = TextTreeText.CutText(_rootNode.RootTextBlock, elementNode.GetSymbolOffset(this.Generation), elementNode.SymbolCount); 2888TextTreeText.RemoveElementEdges(_rootNode.RootTextBlock, symbolOffset, elementNode.SymbolCount); 2896elementText = TextTreeText.CutText(_rootNode.RootTextBlock, symbolOffset, elementNode.SymbolCount); 3175if (_rootNode == null) 3184Invariant.Assert(_rootNode != null, "Unexpected DemandCreateText call before position allocation."); 3186if (_rootNode.RootTextBlock == null) 3188_rootNode.RootTextBlock = new TextTreeRootTextBlock(); 3190TextTreeText.InsertElementEdges(_rootNode.RootTextBlock, 0, 0); 3220_rootNode.Generation++; 3224_rootNode.PositionGeneration++; 3283if (_rootNode.RootTextBlock != null) 3287for (textBlock = (TextTreeTextBlock)_rootNode.RootTextBlock.ContainedNode.GetMinSibling(); textBlock != null; textBlock = (TextTreeTextBlock)textBlock.GetNextNode()) 3348_rootNode.DispatcherProcessingDisabled = this.Dispatcher.DisableProcessing();