Skip to main content

MVCxTreeViewNodeCollection.Add(String, String) Method

Creates a new node with the specified settings and adds it to the collection.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public MVCxTreeViewNode Add(
    string text,
    string name
)

Parameters

Name Type Description
text String

A String value specifying the node’s display text. This value is assigned to the TreeViewNode.Text property.

name String

A String value specifying the name which identifies the created node. This value is assigned to the TreeViewNode.Name property.

Returns

Type Description
MVCxTreeViewNode

An MVCxTreeViewNode object representing the newly created node.

Remarks

Use the Add method to add a new node with the specified settings to the end of the MVCxTreeViewNodeCollection object.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(String, String) 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