Version

AddToolbarItem Method

High-level "shortcut" method to quickly create, initialize, and add an item to the toolbar.
Syntax
'Declaration
 
Public Function AddToolbarItem( _
   ByVal type As ToolbarItemType _
) As BaseToolbarItem
public BaseToolbarItem AddToolbarItem( 
   ToolbarItemType type
)

Parameters

type
A ToolbarItemType specifying the type of toolbar item to create.
Remarks

This method provides an easy way to quickly configure the toolbar. Simply call the WebHtmlEditor.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:

            WebHtmlEditor1.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.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also