編輯

共用方式為


SubMenuStyle.HorizontalPadding Property

Definition

Gets or sets the amount of space to the left and right of a submenu.

public:
 property System::Web::UI::WebControls::Unit HorizontalPadding { System::Web::UI::WebControls::Unit get(); void set(System::Web::UI::WebControls::Unit value); };
public System.Web.UI.WebControls.Unit HorizontalPadding { get; set; }
member this.HorizontalPadding : System.Web.UI.WebControls.Unit with get, set
Public Property HorizontalPadding As Unit

Property Value

The amount of space to the left and right of the text of a submenu. The default is 0.

Exceptions

The selected value is of TypePercentage or is less than 0.

Remarks

Use the HorizontalPadding property to control the amount of space between the text of the submenu item and the side of the containing menu. To control the vertical space between submenu items, use the VerticalPadding property.

Applies to

See also