createButtonAt Method

You can use the createButtonAt method to create a ToolBarButton at a specified index position of the toolbar.

Instructions
Specify the index of the position on the toolbar to add a button or delete any item. You can specify some properties of the new button using the other controls below. Not all properties available are necessarily listed in the sample. For a complete list of properties, see documentation.

Add a button at the specified index with the specified properties or delete any item on the toolbar at the specified index location.

Properties:

Index:     Text:

HOVERSTYLE

SELECTEDSTYLE:

DEFAULTSTYLE:     IMAGEURL:

  




To view the source code, right-click this page and choose View Source from the shortcut menu that appears.

© 2007 Microsoft Corporation. All rights reserved. Terms of use.