menu

Blazor

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

    Show / Hide Table of Contents

    Class SlashMenuCommand

    Defines predefined commands for the slash menu.

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

    These commands provide built-in functionality for common editing tasks, such as inserting structural elements or media. They are designed to work seamlessly with the editor's existing command system, ensuring consistency across slash menu interactions.

    Examples

    Use a predefined command in a slash menu item:

    new SlashMenuItemModel { Command = SlashMenuCommand.Heading1 }

    Fields

    Audio

    Inserts an audio element at the cursor position.

    Declaration
    public const SlashMenuCommand Audio
    Field Value
    Type
    SlashMenuCommand

    Blockquote

    Inserts a blockquote element.

    Declaration
    public const SlashMenuCommand Blockquote
    Field Value
    Type
    SlashMenuCommand

    CodeBlock

    Inserts a code block element.

    Declaration
    public const SlashMenuCommand CodeBlock
    Field Value
    Type
    SlashMenuCommand

    Heading1

    Inserts a level 1 heading element.

    Declaration
    public const SlashMenuCommand Heading1
    Field Value
    Type
    SlashMenuCommand

    Heading2

    Inserts a level 2 heading element.

    Declaration
    public const SlashMenuCommand Heading2
    Field Value
    Type
    SlashMenuCommand

    Heading3

    Inserts a level 3 heading element.

    Declaration
    public const SlashMenuCommand Heading3
    Field Value
    Type
    SlashMenuCommand

    Heading4

    Inserts a level 4 heading element.

    Declaration
    public const SlashMenuCommand Heading4
    Field Value
    Type
    SlashMenuCommand

    Image

    Inserts an image at the cursor position.

    Declaration
    public const SlashMenuCommand Image
    Field Value
    Type
    SlashMenuCommand

    Link

    Creates a hyperlink from the selected text or inserts a link.

    Declaration
    public const SlashMenuCommand Link
    Field Value
    Type
    SlashMenuCommand

    OrderedList

    Inserts an ordered (numbered) list.

    Declaration
    public const SlashMenuCommand OrderedList
    Field Value
    Type
    SlashMenuCommand

    Paragraph

    Inserts a paragraph element.

    Declaration
    public const SlashMenuCommand Paragraph
    Field Value
    Type
    SlashMenuCommand

    Table

    Inserts a table element.

    Declaration
    public const SlashMenuCommand Table
    Field Value
    Type
    SlashMenuCommand

    UnorderedList

    Inserts an unordered (bulleted) list.

    Declaration
    public const SlashMenuCommand UnorderedList
    Field Value
    Type
    SlashMenuCommand

    Video

    Inserts a video element at the cursor position.

    Declaration
    public const SlashMenuCommand Video
    Field Value
    Type
    SlashMenuCommand
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved