New to Telerik UI for WinForms? Start a free 30-day trial

Inserts a table described by an InsertTableCommandParameter when the document selection is empty.

Definition

Constructors

Initializes the command for the specified editor.

C#
public InsertTableCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box where the table can be inserted.

Methods

Checks that the parameter is supported and the document selection is empty.

C#
protected override bool CanExecuteOverride(object parameter)
Parameters:parameterobject

A table parameter object or null.

Returns:

bool

true when the parameter type is supported and the selection is empty; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Inserts a table using the supplied dimensions and paragraph-placement option.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

The table settings; null is ignored.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)