This documentation is archived and is not being maintained.

Menu::StaticSubMenuIndent Property

Gets or sets the amount of space, in pixels, to indent submenus within a static menu.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[ThemeableAttribute(true)]
public:
property Unit StaticSubMenuIndent {
	Unit get ();
	void set (Unit value);
}
<asp:Menu StaticSubMenuIndent="Unit" />

Property Value

Type: System.Web.UI.WebControls::Unit
A Unit that represents the amount of space, in pixels, to indent submenus within a static menu. The default is 0.

ExceptionCondition
ArgumentOutOfRangeException

The value of the selected Unit is less than 0.

When the static menu displays more than one menu level (if the StaticDisplayLevels property is set to a value higher than 1), use the StaticSubMenuIndent property to specify the number of pixels by which to indent the submenu items within the static menu.

The following code example demonstrates how to use the StaticSubMenuIndent property to indent the submenu items in a static menu by 10 pixels.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: