TOOLBARLABEL Element | ToolbarLabel Object

Adds a ToolbarLabel element to a Toolbar.

Syntax

HTML <namespace:TOOLBARLABEL ... >

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.

Remarks

Instead of content, the TOOLBARLABEL element can include text and/or an image.

This element is a block element.

This element requires a closing tag.

Members Table

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

Attribute Property Description
DEFAULTSTYLE Sets or retrieves a value that indicates the default style for the element.
IMAGEURL Sets or retrieves a value that indicates the URL of the image to be displayed on a node or toolbar item.
TEXT Text Sets or retrieves a value that indicates the text or caption for the object.
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 TOOLBARLABEL element to add a label to a Toolbar.


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

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

<TOOLBAR:TOOLBARSEPARATOR/>
<TOOLBAR:TOOLBARLABEL TEXT="This is a Label"
DEFAULTSTYLE="color:#003399;border:2px solid #000000;background-color:#FFFFFF"
IMAGEURL="/workshop/graphics/tool-calendar.gif"
/>
<TOOLBAR:TOOLBARSEPARATOR/>
</TOOLBAR:TOOLBAR> 

</BODY>
</HTML>

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

Applies To

TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl