Back to Devexpress

BootstrapTreeViewNodeCollection Class

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-7148f173.md

latest4.2 KB
Original Source

BootstrapTreeViewNodeCollection Class

A collection of nodes within the Tree View control.

Namespace : DevExpress.Web.Bootstrap

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

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
public class BootstrapTreeViewNodeCollection :
    TreeViewNodeCollection
vb
Public Class BootstrapTreeViewNodeCollection
    Inherits TreeViewNodeCollection

The following members return BootstrapTreeViewNodeCollection objects:

Remarks

Each node within a Tree View can have its own child nodes, held within a collection, which is an instance of the BootstrapTreeViewNodeCollection class and can be accessed via the Nodes property. The properties and methods exposed by the BootstrapTreeViewNodeCollection class can be used to perform collection operations, such as adding new or deleting existing nodes. Each node of the collection is denoted by a BootstrapTreeViewNode object. Individual nodes can be accessed using indexer notation, by their names or display texts, using the specific methods of the collection.

Example

This example demonstrates the basic functionality of the Tree View control.

The image below shows the result:

aspx
<dx:BootstrapTreeView runat="server">
    <Nodes>
        <dx:BootstrapTreeViewNode Text="Home" Expanded="true">
            <Nodes>
                <dx:BootstrapTreeViewNode Text="News">
                    <Nodes>
                        <dx:BootstrapTreeViewNode Text="For Developers">
                        </dx:BootstrapTreeViewNode>
                        <dx:BootstrapTreeViewNode Text="Website news">
                        </dx:BootstrapTreeViewNode>
                    </Nodes>
                </dx:BootstrapTreeViewNode>
                <dx:BootstrapTreeViewNode Text="Our Mission">
                </dx:BootstrapTreeViewNode>
            </Nodes>
        </dx:BootstrapTreeViewNode>
        ...
    </Nodes>
</dx:BootstrapTreeView>

Inheritance

Object StateManagedCollectionBase Collection Collection<TreeViewNode> HierarchicalCollection<TreeViewNode> TreeViewNodeCollection BootstrapTreeViewNodeCollection

See Also

BootstrapTreeViewNodeCollection Members

Tree View

DevExpress.Web.Bootstrap Namespace