Back to Devexpress

TdxOcNode.MoveTo(TdxOcNode,TdxOcNodeAttachMode) Method

vcl-dxorgchr-dot-tdxocnode-dot-moveto-x28-dxorgchr-dot-tdxocnode-dxorgchr-dot-tdxocnodeattachmode-x29.md

latest1.3 KB
Original Source

TdxOcNode.MoveTo(TdxOcNode,TdxOcNodeAttachMode) Method

Moves the current node to a specific location within the tree.

Declaration

delphi
procedure MoveTo(Dest: TdxOcNode; Mode: TdxOcNodeAttachMode);

Parameters

NameType
DestTdxOcNode
ModeTdxOcNodeAttachMode

Remarks

Call this procedure to move the current node, including all its children to another node passed as the Dest parameter. Use the Mode parameter to specify the required destination:

ValueMeaning
naAddAppends the node to the list of the destination node’s siblings.
naAddFirstPrepends the node to the list of the destination node’s siblings.
naAddChildAppends the node as the destination node’s descendant.
naAddChildFirstPrepends the node as the destination node’s descendant.
naInsertInserts the current node between the destination node and its preceding node at the same nesting level.

See Also

TdxCustomOrgChart.GetNodeAt

TdxOcNode Class

TdxOcNode Members

dxorgchr Unit