3 instantiations of TextTreeTextNode
PresentationFramework (3)
src\Framework\System\Windows\Documents\TextContainer.cs (1)
913
textNode = new
TextTreeTextNode
();
src\Framework\System\Windows\Documents\TextTreeTextNode.cs (2)
96
clone = new
TextTreeTextNode
();
230
newNode = new
TextTreeTextNode
();
62 references to TextTreeTextNode
PresentationFramework (62)
src\Framework\System\Windows\Documents\TextContainer.cs (25)
527
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
553
if (node is
TextTreeTextNode
)
574
TextTreeTextNode
textNode;
576
textNode = node as
TextTreeTextNode
;
592
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
610
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
641
if (node is
TextTreeTextNode
&& nodeOffset > 0 && nodeOffset < node.SymbolCount)
656
TextTreeTextNode
nextTextNode = ((direction == LogicalDirection.Forward) ? node.GetNextNode() : node.GetPreviousNode()) as
TextTreeTextNode
;
839
TextTreeTextNode
textNode;
868
Invariant.Assert(position.Node is
TextTreeTextNode
);
869
Invariant.Assert((position.Edge == ElementEdge.AfterEnd && position.Node.GetPreviousNode() is
TextTreeTextNode
&& position.Node.GetPreviousNode().SymbolCount > 0) ||
870
(position.Edge == ElementEdge.BeforeStart && position.Node.GetNextNode() is
TextTreeTextNode
&& position.Node.GetNextNode().SymbolCount > 0));
1364
Invariant.Assert(node is
TextTreeTextNode
);
1370
node = ((
TextTreeTextNode
)node).Split(offset - nodeOffset, ElementEdge.AfterEnd);
1445
else if (node is
TextTreeTextNode
|| node is TextTreeObjectNode)
1464
Invariant.Assert(node is
TextTreeTextNode
);
1468
node = ((
TextTreeTextNode
)node).Split(charOffset - nodeCharOffset, ElementEdge.AfterEnd);
2170
TextTreeTextNode
textNode;
2174
textNode = node as
TextTreeTextNode
;
2198
Invariant.Assert(nextNode is
TextTreeTextNode
);
2200
Invariant.Assert(!((
TextTreeTextNode
)nextNode).AfterEndReferenceCount);
2223
Invariant.Assert(previousNode is
TextTreeTextNode
);
2237
Invariant.Assert(nextNode is
TextTreeTextNode
);
3162
Invariant.Assert(clone != null || node is
TextTreeTextNode
&& node.SymbolCount == 0);
src\Framework\System\Windows\Documents\TextPointer.cs (21)
614
textNode = ((direction == LogicalDirection.Forward) ? textNode.GetNextNode() : textNode.GetPreviousNode()) as
TextTreeTextNode
;
788
TextTreeTextNode
textNode;
1764
internal static int GetTextInRun(TextContainer textContainer, int symbolOffset,
TextTreeTextNode
textNode, int nodeOffset, LogicalDirection direction, char[] textBuffer, int startIndex, int count)
1816
textNode = ((direction == LogicalDirection.Forward) ? textNode.GetNextNode() : textNode.GetPreviousNode()) as
TextTreeTextNode
;
2841
internal
TextTreeTextNode
GetAdjacentTextNodeSibling(LogicalDirection direction)
2843
return GetAdjacentSiblingNode(direction) as
TextTreeTextNode
;
2848
internal static
TextTreeTextNode
GetAdjacentTextNodeSibling(TextTreeNode node, ElementEdge edge, LogicalDirection direction)
2850
return GetAdjacentSiblingNode(node, edge, direction) as
TextTreeTextNode
;
3169
startedAdjacentToTextNode = currentNode is
TextTreeTextNode
;
3186
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3187
endedAdjacentToTextNode = newNode.GetNextNode() is
TextTreeTextNode
;
3209
endedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3221
startedAdjacentToTextNode = nextNode is
TextTreeTextNode
;
3234
endedAdjacentToTextNode = newNode.GetNextNode() is
TextTreeTextNode
;
3336
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3337
endedAdjacentToTextNode = startedAdjacentToTextNode && newNode.GetPreviousNode() is
TextTreeTextNode
;
3356
endedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3379
startedAdjacentToTextNode = newNode is
TextTreeTextNode
;
3380
endedAdjacentToTextNode = startedAdjacentToTextNode && newNode.GetPreviousNode() is
TextTreeTextNode
;
3412
startedAdjacentToTextNode = currentNode is
TextTreeTextNode
;
4183
else if (_node is
TextTreeTextNode
|| _node is TextTreeObjectNode)
src\Framework\System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (4)
176
TextTreeTextNode
textNode;
185
textNode = node as
TextTreeTextNode
;
222
private TextTreeNode CopyTextNode(
TextTreeTextNode
textNode, TextTreeNode haltNode, out ContentContainer container)
242
textNode = node as
TextTreeTextNode
;
src\Framework\System\Windows\Documents\TextTreeTextNode.cs (12)
90
TextTreeTextNode
clone;
115
TextTreeTextNode
node;
116
TextTreeTextNode
mergeNode;
146
mergeNode = node.GetPreviousNode() as
TextTreeTextNode
;
152
mergeNode = node.GetNextNode() as
TextTreeTextNode
;
195
internal
TextTreeTextNode
Split(int localOffset, ElementEdge edge)
197
TextTreeTextNode
newNode;
198
TextTreeTextNode
edgeNode;
496
TextTreeTextNode
previousNode;
497
TextTreeTextNode
nextNode;
502
previousNode = GetPreviousNode() as
TextTreeTextNode
;
522
nextNode = previousNode.GetNextNode() as
TextTreeTextNode
;