Skip to main content

Default Toolbar Items

  • 3 minutes to read

ASPxHtmlEditor has a set of default toolbar items that allow users to perform specific predefined actions when they edit content in the Design View.

ASPxHtmlEditor-ToolbarItem

Each default toolbar item is a descendant of the ToolbarItemBase class. A click on a default toolbar item executes the corresponding command defined in the CommandName property. A default toolbar item’s command name identifies the item when you handle the ASPxClientHtmlEditor.CommandExecuted client event. On the client side, the allowed predefined command names are listed in the ASPxClientCommandConsts object.

You can use the HtmlEditorToolbarItem.Visible and HtmlEditorToolbarItem.VisibleIndex properties to specify the default toolbar item’s visibility and visible order amongst other toolbar items. Set the HtmlEditorToolbarItem.BeginGroup property to true to start a group with this toolbar item (a separator appears before the toolbar item in this case). Use the ToolbarItemBase.ToolTip property to define a toolbar item’s tooltip text.

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