See Also: TreeNodeStyleCollection Members
The System.Web.UI.WebControls.TreeNodeStyleCollection class is used to store and manage a collection of System.Web.UI.WebControls.TreeNodeStyle objects. The TreeView.LevelStyles property, of type System.Web.UI.WebControls.TreeNodeStyleCollection, stores the node styles for the individual levels of a tree.
The TreeView.LevelStyles property is an alternative to the individual style properties, such as the TreeView.NodeStyle property, that control node styles at different levels of the tree. The first style in the collection corresponds to the node style in the first level of the tree. The second style in the collection corresponds to the node style in the second level of the tree, and so on. The TreeView.LevelStyles property is most often used to generate table of contents–style navigation menus where nodes at a certain level should have the same appearance, regardless of whether they have child nodes.
The System.Web.UI.WebControls.TreeNodeStyleCollection class inherits most of its members from the System.Web.UI.StateManagedCollection class. For more information about the inherited members, see System.Web.UI.StateManagedCollection.