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