5 types derived from TextTreeNode
PresentationFramework (5)
System\Windows\Documents\TextTreeFixupNode.cs (1)
17
internal class TextTreeFixupNode :
TextTreeNode
System\Windows\Documents\TextTreeObjectNode.cs (1)
16
internal class TextTreeObjectNode :
TextTreeNode
System\Windows\Documents\TextTreeRootNode.cs (1)
19
internal class TextTreeRootNode :
TextTreeNode
System\Windows\Documents\TextTreeTextElementNode.cs (1)
18
internal class TextTreeTextElementNode :
TextTreeNode
System\Windows\Documents\TextTreeTextNode.cs (1)
33
internal class TextTreeTextNode :
TextTreeNode
194 references to TextTreeNode
PresentationFramework (194)
System\Windows\Documents\TextContainer.cs (70)
465
TextTreeNode
node;
502
TextTreeNode
node = (
TextTreeNode
)pointer.Handle0;
529
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
552
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
568
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
584
private
TextTreeNode
GetScopingNode(StaticTextPointer position)
586
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
588
TextTreeNode
scopingNode;
615
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
629
node = (
TextTreeNode
)node.GetContainingNode();
1166
TextTreeNode
objectNode;
1213
TextTreeNode
containingNode;
1368
internal void GetNodeAndEdgeAtCharOffset(int charOffset, out
TextTreeNode
node, out ElementEdge edge)
1448
node = (
TextTreeNode
)node.ContainedNode;
1452
node = (
TextTreeNode
)node.GetSiblingAtCharOffset(charOffset - nodeCharOffset, out siblingTreeCharOffset);
1459
node = (
TextTreeNode
)AdjustForZeroWidthNode(node, edge);
1924
internal
TextTreeNode
FirstContainedNode
1928
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetFirstContainedNode();
1933
internal
TextTreeNode
LastContainedNode
1937
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetLastContainedNode();
2189
if (previousNode != null && previousNode.SymbolCount == 0 && !((
TextTreeNode
)previousNode).AfterEndReferenceCount)
2203
if (nextNode != null && nextNode.SymbolCount == 0 && !((
TextTreeNode
)nextNode).BeforeStartReferenceCount)
2265
TextTreeNode
.Join(elementNode, leftSubTree, rightSubTree);
2286
TextTreeNode
previousNode;
2288
TextTreeNode
nextNode;
2317
previousNode = (
TextTreeNode
)leftSubTree.GetMaxSibling();
2322
previousNode = (
TextTreeNode
)containingNode;
2327
nextNode = (
TextTreeNode
)rightSubTree.GetMinSibling();
2332
nextNode = (
TextTreeNode
)containingNode;
2338
AdjustRefCountsForContentDelete(ref previousNode, previousEdge, ref nextNode, nextEdge, (
TextTreeNode
)middleSubTree);
2355
rootNode =
TextTreeNode
.Join(leftSubTree, rightSubTree);
2395
private int CutTopLevelLogicalNodes(
TextTreeNode
containingNode, TextPointer startPosition, TextPointer endPosition, out int charCount)
2504
private void AdjustRefCountsForContentDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2505
ref
TextTreeNode
nextNode, ElementEdge nextEdge,
2506
TextTreeNode
middleSubTree)
2515
GetReferenceCounts((
TextTreeNode
)middleSubTree.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2522
private void GetReferenceCounts(
TextTreeNode
node, ref bool leftEdgeReferenceCount, ref bool rightEdgeReferenceCount)
2533
GetReferenceCounts((
TextTreeNode
)node.ContainedNode.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2536
node = (
TextTreeNode
)node.GetNextNode();
2559
private void AdjustRefCountsForShallowDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2560
ref
TextTreeNode
nextNode,ElementEdge nextEdge,
2561
ref
TextTreeNode
firstContainedNode, ref
TextTreeNode
lastContainedNode,
2775
oldLogicalParent = ((
TextTreeNode
)containingNode).GetLogicalTreeNode();
2942
TextTreeNode
previousNode;
2944
TextTreeNode
nextNode;
2950
TextTreeNode
firstContainedNode;
2951
TextTreeNode
lastContainedNode;
2954
previousNode = (
TextTreeNode
)elementNode.GetPreviousNode();
2958
previousNode = (
TextTreeNode
)containingNode;
2961
nextNode = (
TextTreeNode
)elementNode.GetNextNode();
2965
nextNode = (
TextTreeNode
)containingNode;
2995
firstContainedNode = (
TextTreeNode
)childNode.GetMinSibling();
2996
lastContainedNode = (
TextTreeNode
)childNode.GetMaxSibling();
3080
clone.ContainedNode = DeepCopyContainedNodes((
TextTreeNode
)elementNode.ContainedNode.GetMinSibling());
3088
private
TextTreeNode
DeepCopyContainedNodes(
TextTreeNode
node)
3090
TextTreeNode
rootClone;
3091
TextTreeNode
previousClone;
3092
TextTreeNode
clone;
3132
node = (
TextTreeNode
)node.GetNextNode();
3402
private void RaiseEventForFormerFirstIMEVisibleNode(
TextTreeNode
node)
3414
private void RaiseEventForNewFirstIMEVisibleNode(
TextTreeNode
node)
3650
private int _debugId =
TextTreeNode
.GetDebugId();
System\Windows\Documents\TextPointer.cs (59)
295
Initialize(textContainer, (
TextTreeNode
)node, edge, direction, textContainer.PositionGeneration, false, false, textContainer.LayoutGeneration);
299
internal TextPointer(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
305
internal TextPointer(TextContainer tree,
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
593
TextTreeNode
textNode = GetAdjacentTextNodeSibling(direction);
1811
internal static DependencyObject GetAdjacentElement(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
1813
TextTreeNode
adjacentNode;
1931
MoveToNode(_tree, (
TextTreeNode
)node, edge);
1969
TextTreeNode
node;
2270
SetNodeAndEdge(AdjustRefCounts((
TextTreeNode
)newNode, edge, _node, this.Edge), edge);
2426
TextTreeNode
parent1;
2427
TextTreeNode
parent2;
2628
TextTreeNode
scopingNode = GetScopingNode();
2817
internal static TextTreeTextNode GetAdjacentTextNodeSibling(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
2838
internal
TextTreeNode
GetAdjacentSiblingNode(LogicalDirection direction)
2845
internal static
TextTreeNode
GetAdjacentSiblingNode(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
2894
return (
TextTreeNode
)sibling;
2906
internal static int GetSymbolOffset(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
3046
SetNodeAndEdge((
TextTreeNode
)node, edge);
3056
internal
TextTreeNode
GetScopingNode()
3061
internal static
TextTreeNode
GetScopingNode(
TextTreeNode
node, ElementEdge edge)
3063
TextTreeNode
scopingNode;
3069
scopingNode = (
TextTreeNode
)node.GetContainingNode();
3088
internal bool GetNextNodeAndEdge(out
TextTreeNode
node, out ElementEdge edge)
3098
internal static bool GetNextNodeAndEdge(
TextTreeNode
sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out
TextTreeNode
node, out ElementEdge edge)
3252
node = (
TextTreeNode
)newNode;
3258
internal bool GetPreviousNodeAndEdge(out
TextTreeNode
node, out ElementEdge edge)
3268
internal static bool GetPreviousNodeAndEdge(
TextTreeNode
sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out
TextTreeNode
node, out ElementEdge edge)
3421
node = (
TextTreeNode
)newNode;
3427
internal static TextPointerContext GetPointerContextForward(
TextTreeNode
node, ElementEdge edge)
3429
TextTreeNode
nextNode;
3430
TextTreeNode
firstContainedNode;
3442
firstContainedNode = (
TextTreeNode
)node.GetFirstContainedNode();
3458
nextNode = (
TextTreeNode
)node.GetNextNode();
3481
internal static TextPointerContext GetPointerContextBackward(
TextTreeNode
node, ElementEdge edge)
3484
TextTreeNode
previousNode;
3485
TextTreeNode
lastChildNode;
3490
previousNode = (
TextTreeNode
)node.GetPreviousNode();
3510
lastChildNode = (
TextTreeNode
)node.GetLastContainedNode();
3841
internal
TextTreeNode
Node
3920
Initialize(position.TextContainer, (
TextTreeNode
)node, edge, direction, position.TextContainer.PositionGeneration,
3925
private void Initialize(TextContainer tree,
TextTreeNode
node, ElementEdge edge, LogicalDirection gravity, uint generation,
3962
private
TextTreeNode
AdjustRefCounts(
TextTreeNode
newNode, ElementEdge newNodeEdge,
TextTreeNode
oldNode, ElementEdge oldNodeEdge)
3964
TextTreeNode
node;
3985
private static void RepositionForGravity(ref
TextTreeNode
node, ref ElementEdge edge, LogicalDirection gravity)
4048
node = (
TextTreeNode
)newNode;
4068
internal
TextTreeNode
GetAdjacentNode(LogicalDirection direction)
4073
internal static
TextTreeNode
GetAdjacentNode(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
4075
TextTreeNode
adjacentNode;
4088
adjacentNode = (
TextTreeNode
)node.GetContainingNode();
4097
private void MoveToNode(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
4254
private void SetNodeAndEdge(
TextTreeNode
node, ElementEdge edge)
4353
private
TextTreeNode
_node;
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (13)
33
TextTreeNode
node;
34
TextTreeNode
haltNode;
163
private ContentContainer CopyContent(
TextTreeNode
node,
TextTreeNode
haltNode)
214
private
TextTreeNode
CopyTextNode(TextTreeTextNode textNode,
TextTreeNode
haltNode, out ContentContainer container)
246
return (
TextTreeNode
)node;
254
private
TextTreeNode
CopyObjectNode(TextTreeObjectNode objectNode, out ContentContainer container)
261
return (
TextTreeNode
)objectNode.GetNextNode();
266
private
TextTreeNode
CopyElementNode(TextTreeTextElementNode elementNode, out ContentContainer container)
272
CopyContent((
TextTreeNode
)elementNode.GetFirstContainedNode(), null));
279
CopyContent((
TextTreeNode
)elementNode.GetFirstContainedNode(), null));
282
return (
TextTreeNode
)elementNode.GetNextNode();
System\Windows\Documents\TextTreeDumper.cs (2)
72
internal static void Dump(
TextTreeNode
node)
78
internal static void DumpFlat(
TextTreeNode
node)
System\Windows\Documents\TextTreeFixupNode.cs (15)
30
internal TextTreeFixupNode(
TextTreeNode
previousNode, ElementEdge previousEdge,
TextTreeNode
nextNode, ElementEdge nextEdge) :
41
internal TextTreeFixupNode(
TextTreeNode
previousNode, ElementEdge previousEdge,
TextTreeNode
nextNode, ElementEdge nextEdge,
42
TextTreeNode
firstContainedNode,
TextTreeNode
lastContainedNode)
99
internal override
TextTreeNode
Clone()
321
internal
TextTreeNode
PreviousNode
341
internal
TextTreeNode
NextNode
361
internal
TextTreeNode
FirstContainedNode
371
internal
TextTreeNode
LastContainedNode
408
private readonly
TextTreeNode
_previousNode;
414
private readonly
TextTreeNode
_nextNode;
421
private readonly
TextTreeNode
_firstContainedNode;
425
private readonly
TextTreeNode
_lastContainedNode;
System\Windows\Documents\TextTreeNode.cs (4)
266
internal abstract
TextTreeNode
Clone();
376
internal
TextTreeNode
IncrementReferenceCount(ElementEdge edge)
381
internal virtual
TextTreeNode
IncrementReferenceCount(ElementEdge edge, bool delta)
393
internal virtual
TextTreeNode
IncrementReferenceCount(ElementEdge edge, int delta)
System\Windows\Documents\TextTreeObjectNode.cs (7)
62
internal override
TextTreeNode
Clone()
98
_parentNode = (
TextTreeNode
)value;
154
_leftChildNode = (
TextTreeNode
)value;
168
_rightChildNode = (
TextTreeNode
)value;
322
private
TextTreeNode
_parentNode;
325
private
TextTreeNode
_leftChildNode;
328
private
TextTreeNode
_rightChildNode;
System\Windows\Documents\TextTreeRootNode.cs (3)
75
internal override
TextTreeNode
Clone()
124
_containedNode = (
TextTreeNode
)value;
444
private
TextTreeNode
_containedNode;
System\Windows\Documents\TextTreeTextElementNode.cs (9)
63
internal override
TextTreeNode
Clone()
106
_parentNode = (
TextTreeNode
)value;
120
_containedNode = (
TextTreeNode
)value;
162
_leftChildNode = (
TextTreeNode
)value;
176
_rightChildNode = (
TextTreeNode
)value;
359
private
TextTreeNode
_parentNode;
362
private
TextTreeNode
_leftChildNode;
365
private
TextTreeNode
_rightChildNode;
368
private
TextTreeNode
_containedNode;
System\Windows\Documents\TextTreeTextNode.cs (12)
81
internal override
TextTreeNode
Clone()
108
internal override
TextTreeNode
IncrementReferenceCount(ElementEdge edge, int delta)
203
TextTreeNode
previousNode;
208
previousNode = (
TextTreeNode
)GetPreviousNode();
214
TextTreeNode
nextNode;
219
nextNode = (
TextTreeNode
)GetNextNode();
289
_parentNode = (
TextTreeNode
)value;
345
_leftChildNode = (
TextTreeNode
)value;
359
_rightChildNode = (
TextTreeNode
)value;
572
private
TextTreeNode
_parentNode;
575
private
TextTreeNode
_leftChildNode;
578
private
TextTreeNode
_rightChildNode; // we could combine with _parentNode, if we can accept the increased complexity.