3 instantiations of TextTreeTextNode
PresentationFramework (3)
System\Windows\Documents\TextContainer.cs (1)
898
textNode = new
TextTreeTextNode
();
System\Windows\Documents\TextTreeTextNode.cs (2)
90
clone = new
TextTreeTextNode
();
224
newNode = new
TextTreeTextNode
();
63 references to TextTreeTextNode
PresentationFramework (63)
System\Windows\Documents\TextContainer.cs (25)
512
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
538
if (node is
TextTreeTextNode
)
559
TextTreeTextNode
textNode;
561
textNode = node as
TextTreeTextNode
;
577
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
595
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
626
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
641
TextTreeTextNode
nextTextNode = ((direction == LogicalDirection.Forward) ? node.GetNextNode() : node.GetPreviousNode()) as
TextTreeTextNode
;
824
TextTreeTextNode
textNode;
853
Invariant.Assert(position.Node is
TextTreeTextNode
);
854
Invariant.Assert((position.Edge == ElementEdge.AfterEnd && position.Node.GetPreviousNode() is
TextTreeTextNode
&& position.Node.GetPreviousNode().SymbolCount > 0) ||
855
(position.Edge == ElementEdge.BeforeStart && position.Node.GetNextNode() is
TextTreeTextNode
&& position.Node.GetNextNode().SymbolCount > 0));
1349
Invariant.Assert(node is
TextTreeTextNode
);
1355
node = ((
TextTreeTextNode
)node).Split(offset - nodeOffset, ElementEdge.AfterEnd);
1430
else if (node is
TextTreeTextNode
|| node is TextTreeObjectNode)
1449
Invariant.Assert(node is
TextTreeTextNode
);
1453
node = ((
TextTreeTextNode
)node).Split(charOffset - nodeCharOffset, ElementEdge.AfterEnd);
2155
TextTreeTextNode
textNode;
2159
textNode = node as
TextTreeTextNode
;
2183
Invariant.Assert(nextNode is
TextTreeTextNode
);
2185
Invariant.Assert(!((
TextTreeTextNode
)nextNode).AfterEndReferenceCount);
2208
Invariant.Assert(previousNode is
TextTreeTextNode
);
2222
Invariant.Assert(nextNode is
TextTreeTextNode
);
3146
Invariant.Assert(clone != null || node is
TextTreeTextNode
&& node.SymbolCount == 0);
System\Windows\Documents\TextPointer.cs (21)
603
textNode = ((direction == LogicalDirection.Forward) ? textNode.GetNextNode() : textNode.GetPreviousNode()) as
TextTreeTextNode
;
777
TextTreeTextNode
textNode;
1750
internal static int GetTextInRun(TextContainer textContainer, int symbolOffset,
TextTreeTextNode
textNode, int nodeOffset, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
1799
textNode = ((direction == LogicalDirection.Forward) ? textNode.GetNextNode() : textNode.GetPreviousNode()) as
TextTreeTextNode
;
2815
internal
TextTreeTextNode
GetAdjacentTextNodeSibling(LogicalDirection direction)
2817
return GetAdjacentSiblingNode(direction) as
TextTreeTextNode
;
2822
internal static
TextTreeTextNode
GetAdjacentTextNodeSibling(TextTreeNode node, ElementEdge edge, LogicalDirection direction)
2824
return GetAdjacentSiblingNode(node, edge, direction) as
TextTreeTextNode
;
3143
startedAdjacentToTextNode = currentNode is
TextTreeTextNode
;
3160
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3161
endedAdjacentToTextNode = newNode.GetNextNode() is
TextTreeTextNode
;
3183
endedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3195
startedAdjacentToTextNode = nextNode is
TextTreeTextNode
;
3208
endedAdjacentToTextNode = newNode.GetNextNode() is
TextTreeTextNode
;
3310
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3311
endedAdjacentToTextNode = startedAdjacentToTextNode && newNode.GetPreviousNode() is
TextTreeTextNode
;
3330
endedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3353
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3354
endedAdjacentToTextNode = startedAdjacentToTextNode && newNode.GetPreviousNode() is
TextTreeTextNode
;
3386
startedAdjacentToTextNode = currentNode is
TextTreeTextNode
;
4157
else if (_node is
TextTreeTextNode
|| _node is TextTreeObjectNode)
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (4)
170
TextTreeTextNode
textNode;
179
textNode = node as
TextTreeTextNode
;
216
private TextTreeNode CopyTextNode(
TextTreeTextNode
textNode, TextTreeNode haltNode, out ContentContainer container)
236
textNode = node as
TextTreeTextNode
;
System\Windows\Documents\TextTreeDumper.cs (1)
195
if (node is
TextTreeTextNode
)
System\Windows\Documents\TextTreeTextNode.cs (12)
84
TextTreeTextNode
clone;
109
TextTreeTextNode
node;
110
TextTreeTextNode
mergeNode;
140
mergeNode = node.GetPreviousNode() as
TextTreeTextNode
;
146
mergeNode = node.GetNextNode() as
TextTreeTextNode
;
189
internal
TextTreeTextNode
Split(int localOffset, ElementEdge edge)
191
TextTreeTextNode
newNode;
192
TextTreeTextNode
edgeNode;
490
TextTreeTextNode
previousNode;
491
TextTreeTextNode
nextNode;
496
previousNode = GetPreviousNode() as
TextTreeTextNode
;
516
nextNode = previousNode.GetNextNode() as
TextTreeTextNode
;