Dart.PowerWEB.TextBox Namespace > HtmlBox Class : AddToolbarItem Method |
High-level "shortcut" method to quickly create, initialize, and add an item to the toolbar.
[Visual Basic]
Public Function AddToolbarItem( _
ByVal type As ToolbarItemType _
) As BaseToolbarItem
[C#]
public BaseToolbarItem AddToolbarItem(
ToolbarItemType type
);
[C++]
public: BaseToolbarItem* AddToolbarItem(
ToolbarItemType type
)
[C++/CLI]
public:
BaseToolbarItem^ AddToolbarItem(
ToolbarItemType type
)
This method provides an easy way to quickly configure the toolbar. Simply call the HtmlBox.AddToolbarItem, passing in a ToolbarItemType, and the proper object will be created, provided with the proper default values, and added. For example if you call the following:
HtmlBox1.AddToolbarItem(ToolbarItemType.Bold)
a ToolbarButton object will be created, configured as a "bold" button (i.e., it will display the "bold" image and and call the client-side script which causes text to be formatted as bold), and added to the Toolbar.
Platforms: Windows 98, Windows NT 4.0, Windows ME, Windows 2000, Windows XP, Windows Server 2003, Windows Vista
HtmlBox Class | HtmlBox Members
Send comments on this topic.
Documentation version 3.2.0.0.
© 2009 Dart Communications. All rights reserved.