Version

ToolbarDialogButton Class

Represents a button that raises a dialog.
Syntax
'Declaration
 
Public Class ToolbarDialogButton 
   Inherits BaseToolbarButton
public class ToolbarDialogButton : BaseToolbarButton 
Remarks

The ToolbarDialogButton control represents a button that raises a dialog. This may be a non-draggable "panel" (such as with a "font-color" dialog, created by using the ToolbarDialogButtonType.FontColor value) or a fully-interactive, draggable "window" (such as with "insert horizontal rule" created by using the ToolbarDialogButtonType.InsertRule value).

The dialog that appears when the ToolbarDialogButton is clicked is represented by an HtmlBoxDialog, exposed by the ToolbarDialogButton.Dialog property.

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

  • Calling WebHtmlEditor.AddToolbarItem, passing in a ToolbarItemType associated with ToolbarDialogButton (such as ToolbarItemType.FontColor) creates the ToolbarDialogButton, initializing it with default values for the "font color" type, and adds it to the Toolbar in one step.
  • Create a new ToolbarDialogButton, passing in a ToolbarDialogButtonType (such as ToolbarDialogButtonType.FontColor). This will create and initialize the ToolbarDialogButton with default values for the "font color" type. Add the ToolbarDialogButton 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