Back to Devexpress

TreeListNodes.Add(Object) Method

windowsforms-devexpress-dot-xtratreelist-dot-nodes-dot-treelistnodes-dot-add-x28-system-dot-object-x29.md

latest2.1 KB
Original Source

TreeListNodes.Add(Object) Method

Appends a new node to the end of the TreeListNodes collection and initializes the node with the specified data.

Namespace : DevExpress.XtraTreeList.Nodes

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public TreeListNode Add(
    object nodeData
)
vb
Public Function Add(
    nodeData As Object
) As TreeListNode

Parameters

NameTypeDescription
nodeDataObject

An array of values or a DataRow object, used to initialize the created node’s cells.

|

Returns

TypeDescription
TreeListNode

The new TreeListNode object.

|

Remarks

The nodeData parameter specifies data for the columns of the node that is to be created. This parameter value can be an array of values or a DataRow object. The number and order of items in the array/DataRow object must match the number and order of Tree List columns.

To learn more, see Nodes.

See Also

TreeListNodes Class

TreeListNodes Members

DevExpress.XtraTreeList.Nodes Namespace