asp.net.ph

Menu.StaticSubMenuIndent Property

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.

Syntax


Inline <asp:menu staticsubmenuindent = unit ... >
Script Menu.StaticSubMenuIndent [ = unit ]

Property Value


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.

Remarks

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 ).

Example

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>
See Also

Menu Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph