|
Assign(TPersistent)
|
Represents method Assign(TPersistent).
|
|
AssignTo(TPersistent)
|
Represents method AssignTo(TPersistent).
|
|
BeginUpdate
|
Enables the tree to track when it is changing.
Call GTree.TGCustomTree.BeginUpdate before directly modifying the tree (adding or deleting nodes), and GTree.TGCustomTree.EndUpdate after. When implementing properties or methods that change the tree in descendants of the tree, call BeginUpdate before the changes are made, and EndUpdate when the changes are complete.
The BeginUpdate method may be nested inside other BeginUpdate method calls. The first call to BeginUpdate will fire an OnChanging event. The tree will not fire an GTree.TGCustomTree.OnChange event until an equal number of EndUpdate method calls are made. Therefore, always ensure you protect the calling of the EndUpdate method call in a try-finally block.
|
|
Change(TObject)
|
Called when the tree has changed
|
|
Changing(TObject)
|
Called when the tree is about to change
|
|
Clear
|
Clears and empties the tree of all nodes. The nodes are freed.
|
|
Delete(TGCustomTreeNode)
|
Deletes the input node from the tree and all of its children.
|
|
EndUpdate
|
Enables the graph to track when it has finished changing.
Call GTree.TGCustomTree.BeginUpdate before directly modifying the tree (adding or deleting nodes), and GTree.TGCustomTree.EndUpdate after. When implementing properties or methods that change the tree in descendants of the tree, call BeginUpdate before the changes are made, and EndUpdate when the changes are complete.
The BeginUpdate method may be nested inside other BeginUpdate method calls. The first call to BeginUpdate will fire an OnChanging event. The tree will not fire an GTree.TGCustomTree.OnChange event until an equal number of EndUpdate method calls are made. Therefore, always ensure you protect the calling of the EndUpdate method call in a try-finally block.
|
|
FindItemNode(TGCustomTreeNode,TRSTreeItem,TTraversalOrder)
|
Finds the tree node whose Item property equals the item parameter.
|
|
FindNode(TGCustomTreeNode,TGCustomTreeNode,TTraversalOrder)
|
Finds the parent node of the input node. The function returns nil if a parent cannot be found that contains the input Node as one of its children.
|
|
GetParentNode(TGCustomTreeNode)
|
Returns the parent node of the input Node, or nil if not found
|
|
Infix(TGCustomTreeNode,TTreeIterator,LongInt)
|
Iterates over the entire tree in Infix order, where the first child of the current node is called first, then the current node, and then finally all other children of the current node.
For each node, the Iterator parameter is called, passing in the node and the ATag parameter.
|
|
IsLeaf(TGCustomTreeNode)
|
Returns true if the input node is a leaf node, i.e., a node that has no children.
|
|
IsRoot(TGCustomTreeNode)
|
Returns true if the input node is the root node of the tree.
|
|
NewNode
|
Constructs a new node for the trees. It is not attached to the other nodes of the tree. Call the TGCustomTreeNode.AddChild method to attach the node to another node in the tree.
|
|
Postfix(TGCustomTreeNode,TTreeIterator,LongInt)
|
Iterates over the entire tree in Postfix order, where all children of the current node are called first, the the current node is called.
For each node, the Iterator parameter is called, passing in the node and the ATag parameter.
|
|
Prefix(TGCustomTreeNode,TTreeIterator,LongInt)
|
Iterates over the entire tree in Prefix order, where the current node is called first, then all children of the current node are called.
For each node, the Iterator parameter is called, passing in the node and the ATag parameter.
|
|
SetNodeType(TTreeNodeClass)
|
Specifies the TGCustomTreeNode class to use when creating tree nodes.
|
|
Traverse(TGCustomTreeNode,TTreeIterator,TTraversalOrder,LongInt)
|
Traverses the tree starting at the current node. For each node in the subtree, the Iterator function is called passing in the node and ATag parameter.
|