System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Returns or sets the amount of space, in pixels, to indent submenus within a static menu.
Inline |
<asp:menu staticsubmenuindent = unit ... > |
Script |
Menu.StaticSubMenuIndent [ = unit ] |
unit |
A Unit that represents the amount of space, in pixels, to indent submenus within a static menu. |
The property is read/write with no default value.
Use the StaticSubMenuIndent property to specify the number of pixels by which to indent the submenu items within the static menu.
NOTE: This property only applies when the static menu displays more than one menu level ( if the StaticDisplayLevels property is set to a value higher than 1 ).
The following example demonstrates how to use the StaticSubMenuIndent property to indent the submenu items in a static menu.
<asp:menu id = "navigationMenu"
staticdisplaylevels=2
staticsubmenuindent=10
staticpopoutimageurl = "~/images/popout.jpg"
staticpopoutimagetextformatstring = "More..."
runat = "server">
<items>
...
</items>
</asp:menu>
Menu Members