Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomOrgChart.AddChildFirst(TdxOcNode,TdxOcNodeData) Method

Adds a first child node to the specified node.

#Declaration

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

#Parameters

Name Type
Node TdxOcNode
Data TdxOcNodeData

#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