MarkdownEditorToolState Class

The active formats and history availability at the current design-surface selection, reported by JavaScript.

Inheritance

Object

MarkdownEditorToolState

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class MarkdownEditorToolState

Constructors

MarkdownEditorToolStateLink to this section

The active formats and history availability at the current design-surface selection, reported by JavaScript.

Declaration
public MarkdownEditorToolState()

Properties

BlockLink to this section

The block at the current selection: p or h1 to h6, an empty string when the selection spans several kinds of blocks, or null when it contains no paragraph or heading at all.

Declaration
public string Block { get; set; }
Property Value
Type Description
stringThe block at the current selection: p or h1 to h6, an empty string when the selection spans several kinds of blocks, or null when it contains no paragraph or heading at all.

CanRedoLink to this section

Whether the editor's history has a state to redo to.

Declaration
public bool CanRedo { get; set; }
Property Value
Type Description
boolWhether the editor's history has a state to redo to.

CanUndoLink to this section

Whether the editor's history has a state to undo to.

Declaration
public bool CanUndo { get; set; }
Property Value
Type Description
boolWhether the editor's history has a state to undo to.

FormatsLink to this section

The commands (see MarkdownEditorCommands) active at the current selection.

Declaration
public String[] Formats { get; set; }
Property Value
Type Description
String[]The commands (see MarkdownEditorCommands) active at the current selection.

TableAlignmentLink to this section

The alignment of the table column at the caret: none, left, center or right.

Declaration
public string TableAlignment { get; set; }
Property Value
Type Description
stringThe alignment of the table column at the caret: none, left, center or right.

TableColumnLink to this section

The index of the table column at the caret, or -1 outside a table.

Declaration
public int TableColumn { get; set; }
Property Value
Type Description
intThe index of the table column at the caret, or -1 outside a table.

TableColumnsLink to this section

The number of columns of the table at the caret, or 0 outside a table.

Declaration
public int TableColumns { get; set; }
Property Value
Type Description
intThe number of columns of the table at the caret, or 0 outside a table.

TableRowLink to this section

The index of the table row at the caret, or -1 outside a table.

Declaration
public int TableRow { get; set; }
Property Value
Type Description
intThe index of the table row at the caret, or -1 outside a table.

TableRowsLink to this section

The number of rows of the table at the caret, or 0 outside a table.

Declaration
public int TableRows { get; set; }
Property Value
Type Description
intThe number of rows of the table at the caret, or 0 outside a table.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙