TreeNodeStyle.ChildNodesPadding Property
Assembly: System.Web (in system.web.dll)
/** @property */ public Unit get_ChildNodesPadding () /** @property */ public void set_ChildNodesPadding (Unit value)
public function get ChildNodesPadding () : Unit public function set ChildNodesPadding (value : Unit)
Property Value
The amount of space, in pixels, that is above and below the child nodes section of a parent node. The default is 0 pixels.Use the ChildNodesPadding property to control the amount of space above and below the child nodes section of the node to which the 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 NodeSpacing property.
The value of this property is stored in view state.
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note