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

Merges selected cells when they form a complete rectangular range within one table.

Definition

Constructors

Initializes a new instance of the MergeTableCellsCommand class.

C#
public MergeTableCellsCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The associated RadRichTextBox.

Methods

Reports whether the current selection consists of cells forming a complete rectangle in one table.

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

Not used; availability is based on the current selection.

Returns:

bool

true when the selected cells form a complete rectangular range in one table; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Merges the currently selected table cells into a single cell.

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

Not used; the command uses the current selection.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)