menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToolbarCommand - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ToolbarCommand

    Defines the types to be used to configure the toolbar items.

    Inheritance
    System.Object
    ToolbarCommand
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class ToolbarCommand : Enum
    Remarks

    These commands modify the behavior and appearance of toolbar items in the editor.

    Fields

    Alignments

    Defines the ToolbarCommand as Alignments.

    Declaration
    public const ToolbarCommand Alignments
    Field Value
    Type Description
    ToolbarCommand

    Command for aligning text (left, center, right, justify).

    Remarks

    Provides access to various text alignment options in the toolbar.

    Audio

    Defines the ToolbarCommand as Audio.

    Declaration
    public const ToolbarCommand Audio
    Field Value
    Type Description
    ToolbarCommand

    Command for embedding audio files into the editor.

    Remarks

    Allows integration of audio clips in content creation.

    BackgroundColor

    Defines the ToolbarCommand as BackgroundColor.

    Declaration
    public const ToolbarCommand BackgroundColor
    Field Value
    Type Description
    ToolbarCommand

    Command for changing background color of text.

    Remarks

    Applies a background color to highlighted text for improved visibility.

    Blockquote

    Defines the ToolbarCommand as Blockquote.

    Declaration
    public const ToolbarCommand Blockquote
    Field Value
    Type Description
    ToolbarCommand

    Command to format text as a blockquote.

    Remarks

    Styles selected text to represent a quotation or excerpt.

    Bold

    Defines the ToolbarCommand as Bold.

    Declaration
    public const ToolbarCommand Bold
    Field Value
    Type Description
    ToolbarCommand

    Command for bold text styling in the toolbar.

    Remarks

    Allows users to quickly apply bold formatting to selected text.

    BulletFormatList

    Defines the ToolbarCommand as BulletFormatList.

    Declaration
    public const ToolbarCommand BulletFormatList
    Field Value
    Type Description
    ToolbarCommand

    Command to create a bulleted list format.

    Remarks

    Converts selected text into a list with bullet points.

    ClearFormat

    Defines the ToolbarCommand as ClearFormat.

    Declaration
    public const ToolbarCommand ClearFormat
    Field Value
    Type Description
    ToolbarCommand

    Command to clear formatting and styles from selected text.

    Remarks

    Resets all formatting to default, restoring plain text appearance.

    CreateLink

    Defines the ToolbarCommand as CreateLink.

    Declaration
    public const ToolbarCommand CreateLink
    Field Value
    Type Description
    ToolbarCommand

    Command to insert a hyperlink into the content.

    Remarks

    Allows adding clickable links to selected text or objects.

    CreateTable

    Defines the ToolbarCommand as CreateTable.

    Declaration
    public const ToolbarCommand CreateTable
    Field Value
    Type Description
    ToolbarCommand

    Command to insert and create a new table.

    Remarks

    Adds a table to the editor's content for data organization.

    ExportPdf

    Defines the ToolbarCommand as ExportPdf.

    Declaration
    public const ToolbarCommand ExportPdf
    Field Value
    Type Description
    ToolbarCommand

    PDF export command from the toolbar.

    Remarks

    Assists in exporting editor content to a portable PDF file.

    ExportWord

    Defines the ToolbarCommand as ExportWord.

    Declaration
    public const ToolbarCommand ExportWord
    Field Value
    Type Description
    ToolbarCommand

    Word export command, saving editor content as a Word document.

    Remarks

    Facilitates saving and sharing the editor's content in Word format.

    FontColor

    Defines the ToolbarCommand as FontColor.

    Declaration
    public const ToolbarCommand FontColor
    Field Value
    Type Description
    ToolbarCommand

    Command for changing text color from the toolbar.

    Remarks

    Provides options to customize the font color of selected text.

    FontName

    Defines the ToolbarCommand as FontName.

    Declaration
    public const ToolbarCommand FontName
    Field Value
    Type Description
    ToolbarCommand

    Command for selecting different font types.

    Remarks

    Changes the typeface of selected text to another font.

    FontSize

    Defines the ToolbarCommand as FontSize.

    Declaration
    public const ToolbarCommand FontSize
    Field Value
    Type Description
    ToolbarCommand

    Command to adjust the size of the text font.

    Remarks

    Alters the font size of the selected text within the editor.

    Formats

    Defines the ToolbarCommand as Formats.

    Declaration
    public const ToolbarCommand Formats
    Field Value
    Type Description
    ToolbarCommand

    Command to apply various text block formats.

    Remarks

    Provides different paragraph and text format options.

    FullScreen

    Defines the ToolbarCommand as FullScreen.

    Declaration
    public const ToolbarCommand FullScreen
    Field Value
    Type Description
    ToolbarCommand

    Command to enlarge the editor to fill the screen.

    Remarks

    Expands the editor to enhance focus or utilize additional workspace.

    HorizontalSeparator

    Defines the ToolbarCommand as HorizontalSeparator.

    Declaration
    public const ToolbarCommand HorizontalSeparator
    Field Value
    Type Description
    ToolbarCommand

    Horizontal separator to distinctively divide items.

    Remarks

    Highlights separation between toolbar groups with visible lines.

    Image

    Defines the ToolbarCommand as Image.

    Declaration
    public const ToolbarCommand Image
    Field Value
    Type Description
    ToolbarCommand

    Command for adding images to the text editor.

    Remarks

    Enables the insertion of images within the body's content.

    ImportWord

    Defines the ToolbarCommand as ImportWord.

    Declaration
    public const ToolbarCommand ImportWord
    Field Value
    Type Description
    ToolbarCommand

    Command for importing Word documents into the editor.

    Remarks

    Enables users to bring in text and styling directly from Word files.

    Indent

    Defines the ToolbarCommand as Indent.

    Declaration
    public const ToolbarCommand Indent
    Field Value
    Type Description
    ToolbarCommand

    Command to increase the indent of text or lists.

    Remarks

    Increases indent, shifting text further from the left margin.

    InlineCode

    Defines the ToolbarCommand as InlineCode.

    Declaration
    public const ToolbarCommand InlineCode
    Field Value
    Type Description
    ToolbarCommand

    Command for inline code styling in the toolbar.

    Remarks

    Allows users to quickly apply inline code to selected text.

    InsertCode

    Defines the ToolbarCommand as InsertCode.

    Declaration
    public const ToolbarCommand InsertCode
    Field Value
    Type Description
    ToolbarCommand

    Command to insert code blocks within the text.

    Remarks

    Facilitates the addition of code snippets into the document for clarity.

    Italic

    Defines the ToolbarCommand as Italic.

    Declaration
    public const ToolbarCommand Italic
    Field Value
    Type Description
    ToolbarCommand

    Command for italic text styling in the toolbar.

    Remarks

    Quickly applies italic formatting to selected text.

    LowerCase

    Defines the ToolbarCommand as LowerCase.

    Declaration
    public const ToolbarCommand LowerCase
    Field Value
    Type Description
    ToolbarCommand

    Command to transform selected text to lowercase letters.

    Remarks

    Converts the selected text to lowercase format.

    Maximize

    Defines the ToolbarCommand as Maximize.

    Declaration
    public const ToolbarCommand Maximize
    Field Value
    Type Description
    ToolbarCommand

    Command to maximize the editor window.

    Remarks

    Expands the editor to use maximum available screen size.

    Minimize

    Defines the ToolbarCommand as Minimize.

    Declaration
    public const ToolbarCommand Minimize
    Field Value
    Type Description
    ToolbarCommand

    Command to minimize the editor window.

    Remarks

    Reduces the editor to its original size, clearing up screen space.

    NumberFormatList

    Defines the ToolbarCommand as NumberFormatList.

    Declaration
    public const ToolbarCommand NumberFormatList
    Field Value
    Type Description
    ToolbarCommand

    Command to create a numbered list format.

    Remarks

    Turns selected text into an ordered list with numbers.

    OrderedList

    Defines the ToolbarCommand as OrderedList.

    Declaration
    public const ToolbarCommand OrderedList
    Field Value
    Type Description
    ToolbarCommand

    Command to create an ordered list numbered sequentially.

    Remarks

    Displays selected items in a sequentially numbered format.

    Outdent

    Defines the ToolbarCommand as Outdent.

    Declaration
    public const ToolbarCommand Outdent
    Field Value
    Type Description
    ToolbarCommand

    Command to reduce the indent of text or lists.

    Remarks

    Decreases indent levels, moving text closer to the left margin.

    Preview

    Defines the ToolbarCommand as Preview.

    Declaration
    public const ToolbarCommand Preview
    Field Value
    Type Description
    ToolbarCommand

    Command to switch to a preview mode showing the rendered content.

    Remarks

    Provides a live preview of how the content appears in a live environment.

    Print

    Defines the ToolbarCommand as Print.

    Declaration
    public const ToolbarCommand Print
    Field Value
    Type Description
    ToolbarCommand

    Command to print the current document or selected areas.

    Remarks

    Provides print functionality directly from the rich text editor.

    Redo

    Defines the ToolbarCommand as Redo.

    Declaration
    public const ToolbarCommand Redo
    Field Value
    Type Description
    ToolbarCommand

    Command to redo previously undone actions.

    Remarks

    Restores actions that were undone, reapplying changes.

    RemoveLink

    Defines the ToolbarCommand as RemoveLink.

    Declaration
    public const ToolbarCommand RemoveLink
    Field Value
    Type Description
    ToolbarCommand

    Command to remove hyperlinks from selected text or objects.

    Remarks

    Strips links from content, reverting linked text to regular text.

    Separator

    Defines the ToolbarCommand as Separator.

    Declaration
    public const ToolbarCommand Separator
    Field Value
    Type Description
    ToolbarCommand

    Separator to visually group toolbar items.

    Remarks

    Used for organizing toolbar items into logical sections.

    SourceCode

    Defines the ToolbarCommand as SourceCode.

    Declaration
    public const ToolbarCommand SourceCode
    Field Value
    Type Description
    ToolbarCommand

    Command to toggle source code view for direct HTML editing.

    Remarks

    Allows editing of the underlying HTML and scripts within the editor.

    StrikeThrough

    Defines the ToolbarCommand as StrikeThrough.

    Declaration
    public const ToolbarCommand StrikeThrough
    Field Value
    Type Description
    ToolbarCommand

    Command to apply strike-through effect via the toolbar.

    Remarks

    Draws a line through the selected text to show deletions.

    SubScript

    Defines the ToolbarCommand as SubScript.

    Declaration
    public const ToolbarCommand SubScript
    Field Value
    Type Description
    ToolbarCommand

    Command to apply subscript styling.

    Remarks

    Lowers selected text below the baseline, often for scientific notations.

    SuperScript

    Defines the ToolbarCommand as SuperScript.

    Declaration
    public const ToolbarCommand SuperScript
    Field Value
    Type Description
    ToolbarCommand

    Command to apply superscript styling.

    Remarks

    Raises selected text above the normal line for notation or symbolism.

    Underline

    Defines the ToolbarCommand as Underline.

    Declaration
    public const ToolbarCommand Underline
    Field Value
    Type Description
    ToolbarCommand

    Command for underline styling in the toolbar.

    Remarks

    Adds an underline to selected text for emphasis.

    Undo

    Defines the ToolbarCommand as Undo.

    Declaration
    public const ToolbarCommand Undo
    Field Value
    Type Description
    ToolbarCommand

    Command to reverse previous edits or actions.

    Remarks

    Undoes the most recent changes made within the editor.

    UnorderedList

    Defines the ToolbarCommand as UnorderedList.

    Declaration
    public const ToolbarCommand UnorderedList
    Field Value
    Type Description
    ToolbarCommand

    Command to create an unordered list with bullet points.

    Remarks

    Lists selected items with bullets rather than numbers.

    UpperCase

    Defines the ToolbarCommand as UpperCase.

    Declaration
    public const ToolbarCommand UpperCase
    Field Value
    Type Description
    ToolbarCommand

    Command to transform selected text to uppercase letters.

    Remarks

    Converts the selected text to uppercase format.

    Video

    Defines the ToolbarCommand as Video.

    Declaration
    public const ToolbarCommand Video
    Field Value
    Type Description
    ToolbarCommand

    Command for embedding video files within the editor.

    Remarks

    Supports adding visual media for rich content experiences.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved