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