System.Web.UI.WebControls.MenuItemStyle.VerticalPadding Property

Gets or sets the amount of space above and below a menu item's text.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItemStyle.VerticalPadding property to control the amount of vertical space around the text of the menu item to which the System.Web.UI.WebControls.MenuItemStyle object is applied. This space is inserted between the upper edge of the text and the border of the text area, as well as between the lower edge of the text and the text's border. To control the horizontal spacing, use the MenuItemStyle.HorizontalPadding property.

Requirements

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