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

TreeListNode.Clone() Method

Returns a copy of this node.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public virtual object Clone()

#Returns

Type Description
Object

A TreeListNode object representing this node’s copy.

#Remarks

The cloned node is not added to the TreeList control’s hierarchical structure. You can use the TreeListNodes.Add method to add the specified node to the nodes collection. Child nodes collection of a node can be accessed via its TreeListNode.Nodes property.

Use the TreeList.CopyNode method to create a node’s copy and add it to the child collection of the specified node.

See Also