Back to Devexpress

TreeList.CopyNode(TreeListNode, TreeListNode, Boolean) Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-dot-copynode-x28-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnode-system-dot-boolean-x29.md

latest3.6 KB
Original Source

TreeList.CopyNode(TreeListNode, TreeListNode, Boolean) Method

Copies the specified node to the specified node’s child collection. This method does not update the data source and is intended for use in unbound mode.

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public TreeListNode CopyNode(
    TreeListNode sourceNode,
    TreeListNode destinationNode,
    bool cloneChildren
)
vb
Public Function CopyNode(
    sourceNode As TreeListNode,
    destinationNode As TreeListNode,
    cloneChildren As Boolean
) As TreeListNode

Parameters

NameTypeDescription
sourceNodeTreeListNode

A TreeListNode object representing the node to be copied.

| | destinationNode | TreeListNode |

A TreeListNode object representing the node to whose child collection the node is copied.

| | cloneChildren | Boolean |

true if child nodes of the node being copied must be cloned; otherwise false.

|

Returns

TypeDescription
TreeListNode

A TreeListNode object representing the copy of the specified node.

|

Remarks

Use the CopyNode method to create a copy of the specified node and add it to the collection of child nodes (Nodes) of another node.

The CopyNode method does not copy a node to another TreeList control.

Use the CopyNodes method to copy multiple nodes.

Note

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

See Also

MoveNode

DeleteNode(TreeListNode)

AppendNode

How to: Drag XtraGrid rows to the XtraTreeList

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace