Menu::StaticSubMenuIndent Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public:
[ThemeableAttribute(true)]
property Unit StaticSubMenuIndent {
	Unit get();
	void set(Unit value);
}

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.

Exception Condition
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.

.NET Framework
Available since 2.0
Return to top
Show: