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();
1169
TextTreeNode
objectNode;
1216
TextTreeNode
containingNode;
1374
internal void GetNodeAndEdgeAtCharOffset(int charOffset, out
TextTreeNode
node, out ElementEdge edge)
1454
node = (
TextTreeNode
)node.ContainedNode;
1458
node = (
TextTreeNode
)node.GetSiblingAtCharOffset(charOffset - nodeCharOffset, out siblingTreeCharOffset);
1465
node = (
TextTreeNode
)AdjustForZeroWidthNode(node, edge);
1930
internal
TextTreeNode
FirstContainedNode
1934
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetFirstContainedNode();
1939
internal
TextTreeNode
LastContainedNode
1943
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetLastContainedNode();
2201
if (previousNode != null && previousNode.SymbolCount == 0 && !((
TextTreeNode
)previousNode).AfterEndReferenceCount)
2215
if (nextNode != null && nextNode.SymbolCount == 0 && !((
TextTreeNode
)nextNode).BeforeStartReferenceCount)
2277
TextTreeNode
.Join(elementNode, leftSubTree, rightSubTree);
2298
TextTreeNode
previousNode;
2300
TextTreeNode
nextNode;
2329
previousNode = (
TextTreeNode
)leftSubTree.GetMaxSibling();
2334
previousNode = (
TextTreeNode
)containingNode;
2339
nextNode = (
TextTreeNode
)rightSubTree.GetMinSibling();
2344
nextNode = (
TextTreeNode
)containingNode;
2350
AdjustRefCountsForContentDelete(ref previousNode, previousEdge, ref nextNode, nextEdge, (
TextTreeNode
)middleSubTree);
2373
rootNode =
TextTreeNode
.Join(leftSubTree, rightSubTree);
2416
private int CutTopLevelLogicalNodes(
TextTreeNode
containingNode, TextPointer startPosition, TextPointer endPosition, out int charCount)
2525
private void AdjustRefCountsForContentDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2526
ref
TextTreeNode
nextNode, ElementEdge nextEdge,
2527
TextTreeNode
middleSubTree)
2536
GetReferenceCounts((
TextTreeNode
)middleSubTree.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2543
private void GetReferenceCounts(
TextTreeNode
node, ref bool leftEdgeReferenceCount, ref bool rightEdgeReferenceCount)
2554
GetReferenceCounts((
TextTreeNode
)node.ContainedNode.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2557
node = (
TextTreeNode
)node.GetNextNode();
2580
private void AdjustRefCountsForShallowDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2581
ref
TextTreeNode
nextNode,ElementEdge nextEdge,
2582
ref
TextTreeNode
firstContainedNode, ref
TextTreeNode
lastContainedNode,
2799
oldLogicalParent = ((
TextTreeNode
)containingNode).GetLogicalTreeNode();
2969
TextTreeNode
previousNode;
2971
TextTreeNode
nextNode;
2977
TextTreeNode
firstContainedNode;
2978
TextTreeNode
lastContainedNode;
2981
previousNode = (
TextTreeNode
)elementNode.GetPreviousNode();
2985
previousNode = (
TextTreeNode
)containingNode;
2988
nextNode = (
TextTreeNode
)elementNode.GetNextNode();
2992
nextNode = (
TextTreeNode
)containingNode;
3022
firstContainedNode = (
TextTreeNode
)childNode.GetMinSibling();
3023
lastContainedNode = (
TextTreeNode
)childNode.GetMaxSibling();
3107
clone.ContainedNode = DeepCopyContainedNodes((
TextTreeNode
)elementNode.ContainedNode.GetMinSibling());
3115
private
TextTreeNode
DeepCopyContainedNodes(
TextTreeNode
node)
3117
TextTreeNode
rootClone;
3118
TextTreeNode
previousClone;
3119
TextTreeNode
clone;
3159
node = (
TextTreeNode
)node.GetNextNode();
3429
private void RaiseEventForFormerFirstIMEVisibleNode(
TextTreeNode
node)
3441
private void RaiseEventForNewFirstIMEVisibleNode(
TextTreeNode
node)
3677
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()
104
_parentNode = (
TextTreeNode
)value;
118
_containedNode = (
TextTreeNode
)value;
160
_leftChildNode = (
TextTreeNode
)value;
174
_rightChildNode = (
TextTreeNode
)value;
357
private
TextTreeNode
_parentNode;
360
private
TextTreeNode
_leftChildNode;
363
private
TextTreeNode
_rightChildNode;
366
private
TextTreeNode
_containedNode;
System\Windows\Documents\TextTreeTextNode.cs (12)
81
internal override
TextTreeNode
Clone()
106
internal override
TextTreeNode
IncrementReferenceCount(ElementEdge edge, int delta)
201
TextTreeNode
previousNode;
206
previousNode = (
TextTreeNode
)GetPreviousNode();
212
TextTreeNode
nextNode;
217
nextNode = (
TextTreeNode
)GetNextNode();
285
_parentNode = (
TextTreeNode
)value;
341
_leftChildNode = (
TextTreeNode
)value;
355
_rightChildNode = (
TextTreeNode
)value;
568
private
TextTreeNode
_parentNode;
571
private
TextTreeNode
_leftChildNode;
574
private
TextTreeNode
_rightChildNode; // we could combine with _parentNode, if we can accept the increased complexity.