Skip to main content

BootstrapTreeViewNodeCollection.Add(String, String, String, String, String) Method

Adds a new node with the specified settings to the collection.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v24.2.dll

Declaration

public BootstrapTreeViewNode Add(
    string text,
    string name,
    string iconCssClass,
    string navigateUrl,
    string target
)

Parameters

Name Type Description
text String

A String value specifying the node’s display text. Initializes the node’s TreeViewNode.Text property.

name String

A String value specifying the name which identifies the created node. Initializes the node’s TreeViewNode.Name property.

iconCssClass String

A String value specifying the CSS class of the node image. Initializes the item’s BootstrapTreeViewNode.IconCssClass property.

navigateUrl String

A String value specifying the URL to which the browser navigates when the node is clicked. Initializes the node’s TreeViewNode.NavigateUrl property.

target String

A String value which identifies the window or frame at which to target URL content when the node is clicked. This value is assigned to the TreeViewNode.Target

Returns

Type Description
BootstrapTreeViewNode

A BootstrapTreeViewNode 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 BootstrapTreeViewNodeCollection object.

See Also