System.Web.UI.WebControls.TreeNodeStyle.ChildNodesPadding Property

Gets or sets the amount of space between a parent node and a child node to which the System.Web.UI.WebControls.TreeNodeStyle class is applied.

Syntax

[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.DefaultValue(0)]
public Unit ChildNodesPadding { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TreeNodeStyle.ChildNodesPadding property to control the amount of space above and below the child nodes section of the node to which the System.Web.UI.WebControls.TreeNodeStyle class is applied. This spacing is inserted between the parent node and its first child node, as well as between its last child node and the next node.

Note:

The space after the last child node is not rendered if there are no additional nodes following the last child node, because this would leave an unnecessary gap at the bottom of the control.

To control the amount of space between child nodes, use the TreeNodeStyle.NodeSpacing property.

The value of this property is stored in view state.

Requirements

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