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