System.Web.UI.WebControls.MenuItemStyle.ItemSpacing Property

Gets or sets the amount of vertical spacing between the menu item to which the System.Web.UI.WebControls.MenuItemStyle object is applied and its adjacent menu items.

Syntax

[System.ComponentModel.NotifyParentProperty(true)]
[System.ComponentModel.DefaultValue(typeof(System.Web.UI.WebControls.Unit), "")]
public Unit ItemSpacing { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItemStyle.ItemSpacing property to control the amount of vertical spacing between a menu item to which the System.Web.UI.WebControls.MenuItemStyle object is applied and its adjacent menu items at the same level. This space is inserted between the upper edge of the current menu item and the lower edge of the previous menu item, as well as between the lower edge of the current menu item and upper edge of the next menu item.

Note:

The upper space is not rendered for the first menu item in the System.Web.UI.WebControls.Menu control.

Requirements

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