Skip to main content

TdxCustomOrgChart.Insert(TdxOcNode,TdxOcNodeData) Method

Inserts a new node to a tree structure.

Declaration

function Insert(Node: TdxOcNode; Data: TdxOcNodeData): TdxOcNode;

Parameters

Name Type
Node TdxOcNode
Data TdxOcNodeData

Returns

Type
TdxOcNode

Remarks

Creates a new node and adds it to the data structure directly before the Node parameter. The Ptr parameter sets the Data property value of a new node. A reference to the new node returns as a result of the function call.

See Also