System.Web.UI.WebControls Namespace
.NET Framework version 2.0
Represents the style of a node in a TreeView control.
Use the TreeNodeStyle class to represent the style of a node in a TreeView control. The TreeView control allows you to specify different style characteristics ( such as font size and color ) for each of the different node types.
The following table lists the available node styles you can specify for the TreeView.
The TreeNodeStyle class inherits most of its members from the Style class. It extends the Style class by providing properties that control the amount of space around the text in a node, as well as the space between adjacent nodes.
Use the HorizontalPadding property to control the amount of space to the left and right of the text in a node. Similarly, use the VerticalPadding property to control the amount of space above and below the text in a node.
To control the amount of spacing between the node that the TreeNodeStyle is applied to and its adjacent nodes, use the NodeSpacing property. To control the amount of spacing between a parent node and a child node, use the ChildNodesPadding property.
LevelStyles