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