Menu::Orientation Property

 

Gets or sets the direction in which to render the Menu control.

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

public:
property Orientation Orientation {
	Orientation get();
	void set(Orientation value);
}

Property Value

Type: System.Web.UI.WebControls::Orientation

One of the Orientation enumeration values. The default is Orientation.Vertical.

Use the Orientation property to specify the direction in which to render the Menu control. The following table lists the available directions.

Orientation

Description

Orientation.Horizontal

The Menu control is rendered horizontally.

Orientation.Vertical

The Menu control is rendered vertically.

The following code example demonstrates how to use the Orientation property to display a horizontal menu.

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

.NET Framework
Available since 2.0
Return to top
Show: