Version

ToolbarMenuButton Class

Represents a button that opens a menu.
Syntax
'Declaration
 
Public Class ToolbarMenuButton 
   Inherits BaseToolbarButton
public class ToolbarMenuButton : BaseToolbarButton 
Remarks

The ToolbarMenuButton control represents a button that opens a menu. For example, if the ToolbarMenuButton.Type is ToolbarMenuButtonType.InsertTable, the button will open a menu used to create and format a table.

The menu that appears when the ToolbarMenuButton is clicked is represented by an HtmlBoxMenu, exposed by the ToolbarMenuButton.Menu property.

A ToolbarMenuButton can be created and used one of two ways:

  • Calling WebHtmlEditor.AddToolbarItem, passing in a ToolbarItemType associated with ToolbarMenuButton (such as ToolbarItemType.InsertTable) creates the ToolbarMenuButton, initializing it with default values for the "insert table" type, and adds it to the Toolbar in one step.
  • Create a new ToolbarMenuButton, passing in a ToolbarMenuButtonType (such as ToolbarMenuButtonType.InsertTable). This will create and initialize the ToolbarMenuButton with default values for the "insert table" type. Add the ToolbarMenuButton using the ToolbarItemCollection.Add method (WebHtmlEditor.Toolbar.Items.Add).
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