Share via


TURNVERTICALCONTENT Attribute | turnVerticalContent Property

Retrieves a value that indicates whether the content of the Toolbar object can be oriented vertically.

Syntax

HTML <namespace:TOOLBAR TURNVERTICALCONTENT = bTurn... >
Scripting TOOLBAR.turnVerticalContent [ = bTurn ]

Possible Values

namespace Prefix that associates a custom tag with an XML namespace. This prefix is set using the XMLNS attribute of the html tag.
bTurn Boolean that specifies or receives whether the content of the Toolbar object can be oriented vertically.
false
Default. Toolbar content cannot be oriented vertically.
true
Toolbar content can be oriented vertically.

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

Example

The following example shows two vertically oriented Toolbar objects, one with the TURNVERTICALCONTENT attribute set to true and the other set to false.


<html xmlns:mytb>
<?import namespace="mytb" implementation="toolbar.htc">
<BODY>
<mytb:toolbar id="oToolBar" ormytbntation="vertical" 
style="display:inline;position:absolute; top:170;left:50;" 
turnVerticalContent="true">
<mytb:toolbarbutton imageUrl="tool-mail.gif" />
<mytb:toolbarseparator />
<mytb:toolbarbutton imageUrl="tool-reply.gif" Text="Reply" title="Reply" />
<mytb:toolbarbutton imageUrl="tool-reply_all.gif" Text="Reply All" 
title="Reply to All" DefaultStyle="font-weight:bold" HoverStyle="color:blue" 
SelectedStyle= "color:red"/>
<mytb:toolbarbutton imageUrl="tool-forward.gif" Text="Forward" title="Forward" 
DefaultStyle="font-style:italic" />
<mytb:toolbarseparator />
<mytb:toolbarbutton accesskey="m" onclick="alert('Hello World')">
Click <u>M</u>e</mytb:toolbarbutton>
</mytb:toolbar>

<mytb:toolbar id="oToolBar" ormytbntation="vertical" 
style="display:inline;position:absolute; top:170;left:50;" 
turnVerticalContent="false">
<mytb:toolbarbutton imageUrl="tool-mail.gif" />
<mytb:toolbarseparator />
<mytb:toolbarbutton imageUrl="tool-reply.gif" Text="Reply" title="Reply" />
<mytb:toolbarbutton imageUrl="tool-reply_all.gif" Text="Reply All" 
title="Reply to All" DefaultStyle="font-weight:bold" HoverStyle="color:blue" 
SelectedStyle= "color:red"/>
<mytb:toolbarbutton imageUrl="tool-forward.gif" Text="Forward" title="Forward" 
DefaultStyle="font-style:italic" />
<mytb:toolbarseparator />
<mytb:toolbarbutton accesskey="m" onclick="alert('Hello World')">
Click <u>M</u>e</mytb:toolbarbutton>
</mytb:toolbar>
</body>
</html>

Code example: https://samples.msdn.microsoft.com/workshop/samples/webcontrols/toolbar/turnVerticalContent.htm

Applies To

TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl