ORIENTATION Attribute | Orientation Property

Sets or retrieves a value that indicates the alignment of the object within the document.

Syntax

ASP <tagPrefix:ELEMENT ORIENTATION = Orientation ... >
Script [ Orientation = ] object.Orientation

Possible Values

tagPrefix Required. The element prefix associated with the WebControls namespace (Microsoft.Web.UI.WebControls). A TagPrefix is defined using the directive.
Orientation Orientation that specifies or receives a value that indicates the alignment of the object within the document.
horizontalDefault. Object is rendered horizontally within the document.
verticalObject is rendered vertically.

The property is read/write. The property has a default value of horizontal.

Examples

This example demonstrates how to create a vertical TabStrip WebControl.



<?XML:NAMESPACE PREFIX="myTab" />
<?import namespace="myTab" implementation="tabstrip.htc" />
<myTab:tabstrip id="MainTabs" runat="server" Orientation="vertical">
    <myTab:tabseparator DefaultImageUrl="images/some_image.gif"/>
    <myTab:tab />
    <myTab:tabseparator DefaultImageUrl="images/some_image.gif"/>
    <myTab:tab />
    <myTab:tabseparator />
</myTab:tabstrip>

This example demonstrates how to create a vertical Toolbar WebControl.



<?XML:NAMESPACE PREFIX="myToolbar" />
<?import namespace="myToolbar" implementation="toolbar.htc" />
<myToolbar:toolbar id="MainToolbar" runat="server" Orientation="vertical">
    <myToolbar:toolbarlabel text="Label-1" style="color:#FF0000"/>
    <myToolbar:toolbarseparator />
    <myToolbar:toolbartextbox maxlength="5"/>
    <myToolbar:toolbarlabel text="Label-2" style="color:#FF0000"/>
</myToolbar:toolbar>

Applies To

TABSTRIP, TOOLBAR

See Also

Show: