TdxOcNode Class
A tree node.
Declaration
TdxOcNode = class(
TObject
)
Remarks
This class provides the following members that allow you to:
Identify the total node’s area occupied by all the node’s children (ChildrenHeight and ChildrenWidth);
Obtain the node’s bounding and client areas (ClientRect, DisplayRect, FullHeight and FullWidth);
Expand or collapse the node’s tree (Collapse, Expand, Expanded and MakeVisible);
Destroy all the node’s children (DeleteChildren);
Identify whether the node is focused (Focused);
Navigate between the nodes (GetFirstChild, GetLastChild, GetNext, GetNextChild, GetNextSibling, GetNextVisible, GetNodeInfo, GetPrev, GetPrevChild, GetPrevSibling and GetPrevVisible);
Identify if the node is derived from specified one (HasAsParent);
Identify the specified child node’s position (IndexOf);
Identify whether the node’s parent is the tree root (IsParentRoot);
Move the current node to a specific location (MoveTo);
Access the node’s children (AbsoluteCount, AbsoluteItems, Count and Items);
Provide access to the OrgChart control to which the node belongs (Owner);
Provide access to the parent node of the current node (Parent);
Assign and position an image within the node (ImageAlign and ImageIndex);
Change the node’s relative position (ChildAlign);
Identify the node’s state (Deleting);
Identify if the child tree is expanded above the current node (IsVisible);
Expand or collapse the node (Expanded);
Identify the node’s position within the tree (Index and Level).
To create an instance of the TdxOcNode class call one of the following OrgChart control’s methods:
To delete a node, you can call:
The OrgChart control’s Delete procedure;
The TdxOcNode class’s DeleteChildren procedure.