System.Web.UI.WebControls.MenuItemStyle.HorizontalPadding Property

Gets or sets the amount of space to the left and right of the menu item's text.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItemStyle.HorizontalPadding property to control the amount of horizontal 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 left edge of the text and the border of the text area, and between the right edge of the text and the text's border. To control the vertical spacing, use the MenuItemStyle.VerticalPadding property.

Requirements

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