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 |