menu

Blazor

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

    Show / Hide Table of Contents

    Class CodeBlockCommandArgs

    Represents the arguments required for executing the InsertCodeBlock command in the Rich Text Editor.

    Inheritance
    System.Object
    CodeBlockCommandArgs
    Namespace: Syncfusion.Blazor.RichTextEditor
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class CodeBlockCommandArgs : Object
    Remarks

    This class is typically used when inserting a code block programmatically using ExecuteCommandAsync. The Label property defines the display name of the language (e.g., "TypeScript"), while the Language property specifies the language identifier (e.g., "typescript").

    Constructors

    CodeBlockCommandArgs()

    Declaration
    public CodeBlockCommandArgs()

    Properties

    Label

    Gets or sets the display label for the code block language.

    Declaration
    public string Label { get; set; }
    Property Value
    Type
    System.String

    Language

    Gets or sets the language identifier (e.g., "typescript", "c", "html").

    Declaration
    public string Language { get; set; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved