Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Collapse]HTML Editor
    Deployment of ASPxHtmlEditor
    Main Features
    Getting Started
    ASPxHtmlEditor Designer
   [Collapse]Concepts
    [Expand]View Modes
    [Expand]Get and Set HTML
    [Collapse]Toolbars
     [Collapse]Menu Toolbar
      [Collapse]Menu Toolbar Items
        Default Toolbar Items
        Custom Toolbar Items
      Ribbon Toolbar
    [Expand]Dialogs
     Context Menu
     Placeholders
    [Expand]Content Filtering and Validation
    [Expand]Layout
     Searching Content
     Client-Side Commands
     Keyboard Shortcuts
     Import and Export
     Support for SharePoint
   [Expand]Visual Elements
   [Expand]Examples
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Default Toolbar Items

ASPxHtmlEditor provides a set of default toolbar items that allow end-users to perform specific predefined actions when editing the editor's content in the design view.

Each default toolbar item is represented by an individual class, which is a descendant of the ToolbarItemBase class. A click on a default toolbar item executes the corresponding command associated with the item using the HtmlEditorToolbarItem.CommandName property (note that this property is overridden on each toolbar item's class level). A default toolbar item's command name can be used to identify the item when handling the ASPxClientHtmlEditor.CommandExecuted client event. On the client side, the allowed predefined command names are listed in the ASPxClientCommandConsts object.

A default toolbar item's visibility and visible order amongst other toolbar items can be specified using the HtmlEditorToolbarItem.Visible and HtmlEditorToolbarItem.VisibleIndex properties. The HtmlEditorToolbarItem.BeginGroup property can be used to control whether or not a toolbar item starts a group (a specific separator appears before the toolbar item in this case). Using the ToolbarItemBase.ToolTip property, a toolbar item's tooltip text can be defined.

You can add and remove items from a toolbar at design time using the ASPxHtmlEditor Designer.

If you need to have a toolbar item that implements custom functionality, you can create a custom toolbar item.

Expanded List of Default Toolbar Items

The table below lists the default toolbar items available in the ASPxHtmlEditor, classes that correspond to the items, and client-side commands that are executed by the items.

Toolbar Item Class Client-Side Commands
Align Center ToolbarJustifyCenterButton ASPxClientCommandConsts.JUSTIFYCENTER_COMMAND
Align Full ToolbarJustifyFullButton ASPxClientCommandConsts.JUSTIFYFULL_COMMAND
Align Left ToolbarJustifyLeftButton ASPxClientCommandConsts.JUSTIFYLEFT_COMMAND
Align Right ToolbarJustifyRightButton ASPxClientCommandConsts.JUSTIFYRIGHT_COMMAND
Back Color ToolbarBackColorButton ASPxClientCommandConsts.BACKCOLOR_COMMAND
Bold ToolbarBoldButton ASPxClientCommandConsts.BOLD_COMMAND
Bullet List ToolbarInsertUnorderedListButton ASPxClientCommandConsts.INSERTUNORDEREDLIST_COMMAND
Cell Properties ToolbarTableCellPropertiesDialogButton ASPxClientCommandConsts.TABLECELLPROPERTIES_DIALOG_COMMAND
Check Spelling ToolbarCheckSpellingButton ASPxClientCommandConsts.CHECKSPELLING_COMMAND
Column Properties ToolbarTableColumnPropertiesDialogButton ASPxClientCommandConsts.TABLECOLUMNPROPERTIES_DIALOG_COMMAND
Copy ToolbarCopyButton ASPxClientCommandConsts.COPY_COMMAND
Custom CSS ToolbarCustomCssEdit -
Cut ToolbarCutButton ASPxClientCommandConsts.CUT_COMMAND
Delete Column ToolbarDeleteTableColumnButton ASPxClientCommandConsts.DELETETABLECOLUMN_COMMAND
Delete Row ToolbarDeleteTableRowButton ASPxClientCommandConsts.DELETETABLEROW_COMMAND
Delete Table ToolbarDeleteTableButton ASPxClientCommandConsts.DELETETABLE_COMMAND
Export ToolbarExportDropDownButton ASPxClientCommandConsts.EXPORT_COMMAND
Find and Replace ToolbarFindAndReplaceDialogButton ASPxClientCommandConsts.FINDANDREPLACE_DIALOG_COMMAND
Fore Color ToolbarFontColorButton ASPxClientCommandConsts.FONTCOLOR_COMMAND
Font Name ToolbarFontNameEdit ASPxClientCommandConsts.FONTNAME_COMMAND
Font Size ToolbarFontSizeEdit ASPxClientCommandConsts.FONTSIZE_COMMAND
Full Screen ToolbarFullscreenButton ASPxClientCommandConsts.FULLSCREEN_COMMAND
Indent ToolbarIndentButton ASPxClientCommandConsts.INDENT_COMMAND
Insert Audio ToolbarInsertAudioDialogButton ASPxClientCommandConsts.INSERTAUDIO_DIALOG_COMMAND
Insert Column to the Left ToolbarInsertTableColumnToLeftButton ASPxClientCommandConsts.INSERTTABLECOLUMNTOLEFT_COMMAND
Insert Column to the Right ToolbarInsertTableColumnToRightButton ASPxClientCommandConsts.INSERTTABLECOLUMNTORIGHT_COMMAND
Insert Flash ToolbarInsertFlashDialogButton ASPxClientCommandConsts.INSERTFLASH_DIALOG_COMMAND
Insert Image ToolbarInsertImageDialogButton ASPxClientCommandConsts.INSERTIMAGE_DIALOG_COMMAND
Insert Link ToolbarInsertLinkDialogButton ASPxClientCommandConsts.INSERTLINK_DIALOG_COMMAND
Insert Placeholder ToolbarInsertPlaceholderDialogButton ASPxClientCommandConsts.INSERTPLACEHOLDER_DIALOG_COMMAND
Insert Row Above ToolbarInsertTableRowAboveButton ASPxClientCommandConsts.INSERTTABLEROWABOVE_COMMAND
Insert Row Below ToolbarInsertTableRowBelowButton ASPxClientCommandConsts.INSERTTABLEROWBELOW_COMMAND
Insert Table ToolbarInsertTableDialogButton ASPxClientCommandConsts.INSERTTABLE_DIALOG_COMMAND
Insert Video ToolbarInsertVideoDialogButton ASPxClientCommandConsts.INSERTVIDEO_DIALOG_COMMAND
Insert YouTube Video ToolbarInsertYouTubeVideoDialogButton ASPxClientCommandConsts.INSERTYOUTUBEVIDEO_DIALOG_COMMAND
Italic ToolbarItalicButton ASPxClientCommandConsts.ITALIC_COMMAND
Merge Down ToolbarMergeTableCellDownButton ASPxClientCommandConsts.MERGETABLECELLDOWN_COMMAND
Merge Right ToolbarMergeTableCellRightButton ASPxClientCommandConsts.MERGETABLECELLRIGHT_COMMAND
Ordered List ToolbarInsertOrderedListButton ASPxClientCommandConsts.INSERTORDEREDLIST_COMMAND
Outdent ToolbarOutdentButton ASPxClientCommandConsts.OUTDENT_COMMAND
Paragraph ToolbarParagraphFormattingEdit -
Paste ToolbarPasteButton ASPxClientCommandConsts.PASTE_COMMAND
Paste From Word ToolbarPasteFromWordButton ASPxClientCommandConsts.PASTEFROMWORDDIALOG_COMMAND
Print ToolbarPrintButton ASPxClientCommandConsts.PRINT_COMMAND
Redo ToolbarRedoButton ASPxClientCommandConsts.REDO_COMMAND
Remove Format ToolbarRemoveFormatButton ASPxClientCommandConsts.REMOVEFORMAT_COMMAND
Row Properties ToolbarTableRowPropertiesDialogButton ASPxClientCommandConsts.TABLEROWPROPERTIES_DIALOG_COMMAND
Select All ToolbarSelectAllButton ASPxClientCommandConsts.SELECT_ALL
Split Horizontally ToolbarSplitTableCellHorizontallyButton ASPxClientCommandConsts.SPLITTABLECELLHORIZONTALLY_COMMAND
Split Vertically ToolbarSplitTableCellVerticallyButton ASPxClientCommandConsts.SPLITTABLECELLVERTICALLY_COMMAND
Strikethrough ToolbarStrikethroughButton ASPxClientCommandConsts.STRIKETHROUGH_COMMAND
Subscript ToolbarSubscriptButton ASPxClientCommandConsts.SUBSCRIPT_COMMAND
Superscript ToolbarSuperscriptButton ASPxClientCommandConsts.SUPERSCRIPT_COMMAND
Table Operations ToolbarTableOperationsDropDownButton -
Table Properties ToolbarTablePropertiesDialogButton ASPxClientCommandConsts.TABLEPROPERTIES_DIALOG_COMMAND
Underline ToolbarUnderlineButton ASPxClientCommandConsts.UNDERLINE_COMMAND
Undo ToolbarUndoButton ASPxClientCommandConsts.UNDO_COMMAND
Unlink ToolbarUnlinkButton ASPxClientCommandConsts.UNLINK_COMMAND

How would you rate this topic?​​​​​​​