MVCxTreeViewNodeCollection.Add(String, String, 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.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public MVCxTreeViewNode Add(
string text,
string name,
string imageUrl,
string navigateUrl
)
#Parameters
Name | Type | Description |
---|---|---|
text | String | A String value specifying the node’s display text. This value is assigned to the Tree |
name | String | A String value specifying the name which identifies the created node. This value is assigned to the Tree |
image |
String | A String value specifying the path to the node image. This value is assigned to the Image |
navigate |
String | A String value specifying the URL to which the browser navigates when the node is clicked. This value is assigned to the Tree |
#Returns
Type | Description |
---|---|
MVCx |
An MVCx |
#Remarks
Use the Add method to add a new node with the specified settings to the end of the MVCxTreeViewNodeCollection object.