Back to Devexpress

Default Toolbar Items

aspnet-4083-components-html-editor-concepts-toolbars-menu-toolbar-menu-toolbar-items-default-toolbar-items.md

latest15.3 KB
Original Source

Default Toolbar Items

  • Jun 16, 2022
  • 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.

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 ItemClassClient-Side Commands
Align CenterToolbarJustifyCenterButtonASPxClientCommandConsts.JUSTIFYCENTER_COMMAND
Align FullToolbarJustifyFullButtonASPxClientCommandConsts.JUSTIFYFULL_COMMAND
Align LeftToolbarJustifyLeftButtonASPxClientCommandConsts.JUSTIFYLEFT_COMMAND
Align RightToolbarJustifyRightButtonASPxClientCommandConsts.JUSTIFYRIGHT_COMMAND
Back ColorToolbarBackColorButtonASPxClientCommandConsts.BACKCOLOR_COMMAND
BoldToolbarBoldButtonASPxClientCommandConsts.BOLD_COMMAND
Bullet ListToolbarInsertUnorderedListButtonASPxClientCommandConsts.INSERTUNORDEREDLIST_COMMAND
Cell PropertiesToolbarTableCellPropertiesDialogButtonASPxClientCommandConsts.TABLECELLPROPERTIES_DIALOG_COMMAND
Check SpellingToolbarCheckSpellingButtonASPxClientCommandConsts.CHECKSPELLING_COMMAND
Column PropertiesToolbarTableColumnPropertiesDialogButtonASPxClientCommandConsts.TABLECOLUMNPROPERTIES_DIALOG_COMMAND
CopyToolbarCopyButtonASPxClientCommandConsts.COPY_COMMAND
Custom CSSToolbarCustomCssEdit-
CutToolbarCutButtonASPxClientCommandConsts.CUT_COMMAND
Delete ColumnToolbarDeleteTableColumnButtonASPxClientCommandConsts.DELETETABLECOLUMN_COMMAND
Delete RowToolbarDeleteTableRowButtonASPxClientCommandConsts.DELETETABLEROW_COMMAND
Delete TableToolbarDeleteTableButtonASPxClientCommandConsts.DELETETABLE_COMMAND
ExportToolbarExportDropDownButtonASPxClientCommandConsts.EXPORT_COMMAND
Find and ReplaceToolbarFindAndReplaceDialogButtonASPxClientCommandConsts.FINDANDREPLACE_DIALOG_COMMAND
Fore ColorToolbarFontColorButtonASPxClientCommandConsts.FONTCOLOR_COMMAND
Font NameToolbarFontNameEditASPxClientCommandConsts.FONTNAME_COMMAND
Font SizeToolbarFontSizeEditASPxClientCommandConsts.FONTSIZE_COMMAND
Full ScreenToolbarFullscreenButtonASPxClientCommandConsts.FULLSCREEN_COMMAND
IndentToolbarIndentButtonASPxClientCommandConsts.INDENT_COMMAND
Insert AudioToolbarInsertAudioDialogButtonASPxClientCommandConsts.INSERTAUDIO_DIALOG_COMMAND
Insert Column to the LeftToolbarInsertTableColumnToLeftButtonASPxClientCommandConsts.INSERTTABLECOLUMNTOLEFT_COMMAND
Insert Column to the RightToolbarInsertTableColumnToRightButtonASPxClientCommandConsts.INSERTTABLECOLUMNTORIGHT_COMMAND
Insert FlashToolbarInsertFlashDialogButtonASPxClientCommandConsts.INSERTFLASH_DIALOG_COMMAND
Insert ImageToolbarInsertImageDialogButtonASPxClientCommandConsts.INSERTIMAGE_DIALOG_COMMAND
Insert LinkToolbarInsertLinkDialogButtonASPxClientCommandConsts.INSERTLINK_DIALOG_COMMAND
Insert PlaceholderToolbarInsertPlaceholderDialogButtonASPxClientCommandConsts.INSERTPLACEHOLDER_DIALOG_COMMAND
Insert Row AboveToolbarInsertTableRowAboveButtonASPxClientCommandConsts.INSERTTABLEROWABOVE_COMMAND
Insert Row BelowToolbarInsertTableRowBelowButtonASPxClientCommandConsts.INSERTTABLEROWBELOW_COMMAND
Insert TableToolbarInsertTableDialogButtonASPxClientCommandConsts.INSERTTABLE_DIALOG_COMMAND
Insert VideoToolbarInsertVideoDialogButtonASPxClientCommandConsts.INSERTVIDEO_DIALOG_COMMAND
Insert YouTube VideoToolbarInsertYouTubeVideoDialogButtonASPxClientCommandConsts.INSERTYOUTUBEVIDEO_DIALOG_COMMAND
ItalicToolbarItalicButtonASPxClientCommandConsts.ITALIC_COMMAND
Merge DownToolbarMergeTableCellDownButtonASPxClientCommandConsts.MERGETABLECELLDOWN_COMMAND
Merge RightToolbarMergeTableCellRightButtonASPxClientCommandConsts.MERGETABLECELLRIGHT_COMMAND
Ordered ListToolbarInsertOrderedListButtonASPxClientCommandConsts.INSERTORDEREDLIST_COMMAND
OutdentToolbarOutdentButtonASPxClientCommandConsts.OUTDENT_COMMAND
ParagraphToolbarParagraphFormattingEdit-
PasteToolbarPasteButtonASPxClientCommandConsts.PASTE_COMMAND
Paste From WordToolbarPasteFromWordButtonASPxClientCommandConsts.PASTEFROMWORDDIALOG_COMMAND
PrintToolbarPrintButtonASPxClientCommandConsts.PRINT_COMMAND
RedoToolbarRedoButtonASPxClientCommandConsts.REDO_COMMAND
Remove FormatToolbarRemoveFormatButtonASPxClientCommandConsts.REMOVEFORMAT_COMMAND
Row PropertiesToolbarTableRowPropertiesDialogButtonASPxClientCommandConsts.TABLEROWPROPERTIES_DIALOG_COMMAND
Select AllToolbarSelectAllButtonASPxClientCommandConsts.SELECT_ALL
Split HorizontallyToolbarSplitTableCellHorizontallyButtonASPxClientCommandConsts.SPLITTABLECELLHORIZONTALLY_COMMAND
Split VerticallyToolbarSplitTableCellVerticallyButtonASPxClientCommandConsts.SPLITTABLECELLVERTICALLY_COMMAND
StrikethroughToolbarStrikethroughButtonASPxClientCommandConsts.STRIKETHROUGH_COMMAND
SubscriptToolbarSubscriptButtonASPxClientCommandConsts.SUBSCRIPT_COMMAND
SuperscriptToolbarSuperscriptButtonASPxClientCommandConsts.SUPERSCRIPT_COMMAND
Table OperationsToolbarTableOperationsDropDownButton-
Table PropertiesToolbarTablePropertiesDialogButtonASPxClientCommandConsts.TABLEPROPERTIES_DIALOG_COMMAND
UnderlineToolbarUnderlineButtonASPxClientCommandConsts.UNDERLINE_COMMAND
UndoToolbarUndoButtonASPxClientCommandConsts.UNDO_COMMAND
UnlinkToolbarUnlinkButtonASPxClientCommandConsts.UNLINK_COMMAND