Back to Devexpress

TdxCustomOrgChart.AddChildFirst(TdxOcNode,TdxOcNodeData) Method

vcl-dxorgchr-dot-tdxcustomorgchart-dot-addchildfirst-x28-dxorgchr-dot-tdxocnode-dxorgchr-dot-tdxocnodedata-x29.md

latest1.6 KB
Original Source

TdxCustomOrgChart.AddChildFirst(TdxOcNode,TdxOcNodeData) Method

Adds a first child node to the specified node.

Declaration

delphi
function AddChildFirst(Node: TdxOcNode; Data: TdxOcNodeData): TdxOcNode;

Parameters

NameType
NodeTdxOcNode
DataTdxOcNodeData

Returns

Type
TdxOcNode

Remarks

Call this function to place a newly created child node as the first child of a node passed as the Node parameter. The AddChildFirst function returns the child node object. Pass a pointer to custom data or nil as the Data parameter to initialize the created child node’s Data property.

To add a new node as an existing node’s sibling, invoke the Add function instead.

Calling the AddChildFirst function raises the OnCreateNode event.

See Also

TdxCustomOrgChart.AddChild

TdxCustomOrgChart.AddFirst

TdxCustomOrgChart.Insert

TdxCustomOrgChart Class

TdxCustomOrgChart Members

dxorgchr Unit