System.Web.UI.WebControls.TreeNodeTypes Enumeration

Represents the different node types (leaf, parent, and root) in the System.Web.UI.WebControls.TreeView control.

Syntax

[System.Flags]
public enum TreeNodeTypes

Remarks

The System.Web.UI.WebControls.TreeNodeTypes enumeration is used to represent the different node types that are available in the System.Web.UI.WebControls.TreeView control. The following table describes the three different node types.

Leaf

A node with no child nodes.

Parent

A node with a parent node and one or more child nodes.

Root

A node with no parent node and one or more child nodes.

The System.Web.UI.WebControls.TreeNodeTypes enumeration is a flag enumeration, which allows you to combine values through bitwise operations. For example, to represent the parent and leaf nodes, you can perform a bitwise OR operation on the TreeNodeTypes.Parent and TreeNodeTypes.Leaf values.

Note:

The TreeView.ShowCheckBoxes property uses the System.Web.UI.WebControls.TreeNodeTypes enumeration to represent the node types that display check boxes in the System.Web.UI.WebControls.TreeView control. When it is set to a value other than the TreeNodeTypes.None value, check boxes are displayed next to the specified node type, which allows users to select multiple items from the System.Web.UI.WebControls.TreeView control.

Members

Member NameDescription
All

All nodes.

Leaf

A node with no child nodes.

None

No nodes.

Parent

A node with a parent node and one or more child nodes.

Root

A node with no parent node and one or more child nodes.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0