Skip to main content

TreeListNodes.Add(Object[]) Method

Adds a new child TreeListNode containing the specified values.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public TreeListNode Add(
    params object[] nodeData
)

Parameters

Name Type Description
nodeData Object[]

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

Returns

Type Description
TreeListNode

The created TreeListNode object.

Remarks

This method calls the TreeList.AppendNode(nodeData, ParentNode) method. The TreeListNodes.ParentNode property’s value is passed as the method’s second parameter. See the TreeList.AppendNode topic to learn more.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(Object[]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also