Skip to main content
A newer version of this page is available. .

Default Toolbar Items

  • 3 minutes to read

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.

ASPxHtmlEditor-ToolbarItem

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.

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