Skip to main content
All docs
V24.2

TreeList.CopyNodes(IEnumerable<TreeListNode>, TreeListNode, Boolean, Int32) Method

Copies the specified nodes to the specified position in the collection of child nodes of another node. Use this method in unbound mode.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

public List<TreeListNode> CopyNodes(
    IEnumerable<TreeListNode> sourceNodes,
    TreeListNode destinationNode,
    bool cloneChildren,
    int position
)

Parameters

Name Type Description
sourceNodes IEnumerable<TreeListNode>

The nodes to copy.

destinationNode TreeListNode

The target node to which the source node is copied.

cloneChildren Boolean

true to copy child nodes of source nodes; otherwise false.

position Int32

A zero-based integer that specifies the position among the child nodes of the target node to insert the source nodes.

Returns

Type Description
List<TreeListNode>

The copies of the original (source) nodes.

Remarks

Use the CopyNodes method to create the copies of the specified nodes and insert them at the specified position in the collection of child nodes (Nodes) of another node.

The CopyNodes method does not copy the nodes to another TreeList control.

Use the CopyNode method to copy a node.

Note

The CopyNodes method is intended for use in unbound mode. In bound mode, use the AppendNode method.

See Also