1 write to _rootNode
PresentationFramework (1)
src\Framework\System\Windows\Documents\TextContainer.cs (1)
3193
_rootNode
= new TextTreeRootNode(this);
49 references to _rootNode
PresentationFramework (49)
src\Framework\System\Windows\Documents\TextContainer.cs (49)
381
_rootNode
.DispatcherProcessingDisabled.Dispose();
931
TextTreeText.InsertText(
_rootNode
.RootTextBlock, symbolOffset, text);
1101
TextTreeText.InsertElementEdges(
_rootNode
.RootTextBlock, symbolOffset, childSymbolCount);
1106
TextTreeText.InsertText(
_rootNode
.RootTextBlock, symbolOffset, elementText);
1213
TextTreeText.InsertObject(
_rootNode
.RootTextBlock, symbolOffset);
1320
node =
_rootNode
;
1328
Invariant.Assert(node.Generation !=
_rootNode
.Generation ||
1332
node.Generation =
_rootNode
.Generation;
1419
node =
_rootNode
;
1589
_rootNode
.LayoutGeneration++;
1607
if (
_rootNode
.CaretUnitBoundaryCacheOffset != position.GetSymbolOffset())
1609
_rootNode
.CaretUnitBoundaryCacheOffset = position.GetSymbolOffset();
1610
_rootNode
.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(position);
1612
if (!
_rootNode
.CaretUnitBoundaryCache && position.LogicalDirection == LogicalDirection.Backward)
1621
_rootNode
.CaretUnitBoundaryCache = _textview.IsAtCaretUnitBoundary(positionForwardGravity);
1625
return
_rootNode
.CaretUnitBoundaryCache;
1655
startPosition = new TextPointer(this,
_rootNode
, ElementEdge.AfterStart, LogicalDirection.Backward);
1686
endPosition = new TextPointer(this,
_rootNode
, ElementEdge.BeforeEnd, LogicalDirection.Forward);
1846
return (
_rootNode
== null ? 2 :
_rootNode
.SymbolCount);
1855
return (
_rootNode
== null ? 0 :
_rootNode
.IMECharCount);
1874
Invariant.Assert(
_rootNode
!= null, "Asking for TextBlocks before root node create!");
1875
return
_rootNode
.RootTextBlock;
1887
Invariant.Assert(
_rootNode
!= null, "Asking for Generation before root node create!");
1888
return
_rootNode
.Generation;
1898
Invariant.Assert(
_rootNode
!= null, "Asking for PositionGeneration before root node create!");
1899
return
_rootNode
.PositionGeneration;
1909
Invariant.Assert(
_rootNode
!= null, "Asking for LayoutGeneration before root node create!");
1910
return
_rootNode
.LayoutGeneration;
1946
get { return
_rootNode
; }
1954
return (
_rootNode
== null) ? null : (TextTreeNode)
_rootNode
.GetFirstContainedNode();
1963
return (
_rootNode
== null) ? null : (TextTreeNode)
_rootNode
.GetLastContainedNode();
2411
TextTreeText.RemoveText(
_rootNode
.RootTextBlock, symbolOffset, symbolCount);
2475
elementText = TextTreeText.CutText(
_rootNode
.RootTextBlock, elementNode.GetSymbolOffset(this.Generation), elementNode.SymbolCount);
2903
TextTreeText.RemoveElementEdges(
_rootNode
.RootTextBlock, symbolOffset, elementNode.SymbolCount);
2911
elementText = TextTreeText.CutText(
_rootNode
.RootTextBlock, symbolOffset, elementNode.SymbolCount);
3191
if (
_rootNode
== null)
3200
Invariant.Assert(
_rootNode
!= null, "Unexpected DemandCreateText call before position allocation.");
3202
if (
_rootNode
.RootTextBlock == null)
3204
_rootNode
.RootTextBlock = new TextTreeRootTextBlock();
3206
TextTreeText.InsertElementEdges(
_rootNode
.RootTextBlock, 0, 0);
3236
_rootNode
.Generation++;
3240
_rootNode
.PositionGeneration++;
3299
if (
_rootNode
.RootTextBlock != null)
3303
for (textBlock = (TextTreeTextBlock)
_rootNode
.RootTextBlock.ContainedNode.GetMinSibling(); textBlock != null; textBlock = (TextTreeTextBlock)textBlock.GetNextNode())
3364
_rootNode
.DispatcherProcessingDisabled = this.Dispatcher.DisableProcessing();