3 instantiations of TextTreeTextNode
PresentationFramework (3)
System\Windows\Documents\TextContainer.cs (1)
893
textNode = new
TextTreeTextNode
();
System\Windows\Documents\TextTreeTextNode.cs (2)
89
clone = new
TextTreeTextNode
();
223
newNode = new
TextTreeTextNode
();
63 references to TextTreeTextNode
PresentationFramework (63)
System\Windows\Documents\TextContainer.cs (25)
507
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
533
if (node is
TextTreeTextNode
)
554
TextTreeTextNode
textNode;
556
textNode = node as
TextTreeTextNode
;
572
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
590
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
621
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
636
TextTreeTextNode
nextTextNode = ((direction == LogicalDirection.Forward) ? node.GetNextNode() : node.GetPreviousNode()) as
TextTreeTextNode
;
819
TextTreeTextNode
textNode;
848
Invariant.Assert(position.Node is
TextTreeTextNode
);
849
Invariant.Assert((position.Edge == ElementEdge.AfterEnd && position.Node.GetPreviousNode() is
TextTreeTextNode
&& position.Node.GetPreviousNode().SymbolCount > 0) ||
850
(position.Edge == ElementEdge.BeforeStart && position.Node.GetNextNode() is
TextTreeTextNode
&& position.Node.GetNextNode().SymbolCount > 0));
1344
Invariant.Assert(node is
TextTreeTextNode
);
1350
node = ((
TextTreeTextNode
)node).Split(offset - nodeOffset, ElementEdge.AfterEnd);
1425
else if (node is
TextTreeTextNode
|| node is TextTreeObjectNode)
1444
Invariant.Assert(node is
TextTreeTextNode
);
1448
node = ((
TextTreeTextNode
)node).Split(charOffset - nodeCharOffset, ElementEdge.AfterEnd);
2150
TextTreeTextNode
textNode;
2154
textNode = node as
TextTreeTextNode
;
2178
Invariant.Assert(nextNode is
TextTreeTextNode
);
2180
Invariant.Assert(!((
TextTreeTextNode
)nextNode).AfterEndReferenceCount);
2203
Invariant.Assert(previousNode is
TextTreeTextNode
);
2217
Invariant.Assert(nextNode is
TextTreeTextNode
);
3141
Invariant.Assert(clone != null || node is
TextTreeTextNode
&& node.SymbolCount == 0);
System\Windows\Documents\TextPointer.cs (21)
598
textNode = ((direction == LogicalDirection.Forward) ? textNode.GetNextNode() : textNode.GetPreviousNode()) as
TextTreeTextNode
;
772
TextTreeTextNode
textNode;
1745
internal static int GetTextInRun(TextContainer textContainer, int symbolOffset,
TextTreeTextNode
textNode, int nodeOffset, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
1794
textNode = ((direction == LogicalDirection.Forward) ? textNode.GetNextNode() : textNode.GetPreviousNode()) as
TextTreeTextNode
;
2810
internal
TextTreeTextNode
GetAdjacentTextNodeSibling(LogicalDirection direction)
2812
return GetAdjacentSiblingNode(direction) as
TextTreeTextNode
;
2817
internal static
TextTreeTextNode
GetAdjacentTextNodeSibling(TextTreeNode node, ElementEdge edge, LogicalDirection direction)
2819
return GetAdjacentSiblingNode(node, edge, direction) as
TextTreeTextNode
;
3138
startedAdjacentToTextNode = currentNode is
TextTreeTextNode
;
3155
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3156
endedAdjacentToTextNode = newNode.GetNextNode() is
TextTreeTextNode
;
3178
endedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3190
startedAdjacentToTextNode = nextNode is
TextTreeTextNode
;
3203
endedAdjacentToTextNode = newNode.GetNextNode() is
TextTreeTextNode
;
3305
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3306
endedAdjacentToTextNode = startedAdjacentToTextNode && newNode.GetPreviousNode() is
TextTreeTextNode
;
3325
endedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3348
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3349
endedAdjacentToTextNode = startedAdjacentToTextNode && newNode.GetPreviousNode() is
TextTreeTextNode
;
3381
startedAdjacentToTextNode = currentNode is
TextTreeTextNode
;
4152
else if (_node is
TextTreeTextNode
|| _node is TextTreeObjectNode)
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (4)
168
TextTreeTextNode
textNode;
177
textNode = node as
TextTreeTextNode
;
214
private TextTreeNode CopyTextNode(
TextTreeTextNode
textNode, TextTreeNode haltNode, out ContentContainer container)
234
textNode = node as
TextTreeTextNode
;
System\Windows\Documents\TextTreeDumper.cs (1)
192
if (node is
TextTreeTextNode
)
System\Windows\Documents\TextTreeTextNode.cs (12)
83
TextTreeTextNode
clone;
108
TextTreeTextNode
node;
109
TextTreeTextNode
mergeNode;
139
mergeNode = node.GetPreviousNode() as
TextTreeTextNode
;
145
mergeNode = node.GetNextNode() as
TextTreeTextNode
;
188
internal
TextTreeTextNode
Split(int localOffset, ElementEdge edge)
190
TextTreeTextNode
newNode;
191
TextTreeTextNode
edgeNode;
489
TextTreeTextNode
previousNode;
490
TextTreeTextNode
nextNode;
495
previousNode = GetPreviousNode() as
TextTreeTextNode
;
515
nextNode = previousNode.GetNextNode() as
TextTreeTextNode
;