Partager via


TOOLBARSEPARATOR Element | ToolbarSeparator Object

Adds a ToolbarSeparator element to a Toolbar.

Syntax

HTML <namespace:TOOLBARSEPARATOR ... >

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.

Members Table

The following table lists the members exposed by the ToolbarSeparator object.

Attribute Property Description
DEFAULTSTYLE Sets or retrieves a value that indicates the default style for the element.
Method Description
getAttribute Retrieves the value of the specified attribute.
getType Retrieves the type of item.
remove Removes the item from the Toolbar object.
setAttribute Sets the value of the specified attribute.

Example

The following example shows how to use the TOOLBARSEPARATOR element to add a separator to a Toolbar.


<HTML xmlns:TOOLBAR>
<?import namespace="TOOLBAR" implementation="toolbar.htc">

<BODY>

<TOOLBAR:TOOLBAR STYLE="display:inline" ID="oToolBar">

<TOOLBAR:TOOLBARSEPARATOR
DEFAULTSTYLE="border:2px solid #000000;background-color:#003399"
/>
<TOOLBAR:TOOLBARLABEL TEXT="This Label has Separators on both sides."
IMAGEURL="/workshop/graphics/tool-calendar.gif"
/>
<TOOLBAR:TOOLBARSEPARATOR
DEFAULTSTYLE="border:2px solid #000000;background-color:#003399"
/>
</TOOLBAR:TOOLBAR> 

</BODY>
</HTML>

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

Applies To

TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl