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