Class
TableContextCommandBase

Represents the base class for commands that operate on tables within the RichTextBox control.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public abstract class TableContextCommandBase : RichTextBoxCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseTableContextCommandBase

Derived Classes: ChangeTableColumnsLayoutModeCommandDeleteTableColumnCommandDeleteTableCommandDeleteTableRowCommandInsertTableColumnCommandInsertTableColumnToTheLeftCommandInsertTableColumnToTheRightCommandInsertTableRowAboveCommandInsertTableRowBelowCommandInsertTableRowCommandSelectTableCellCommandSelectTableColumnCommandSelectTableCommandSelectTableEmptyCommandSelectTableRowCommandShowTableBordersDialogCommandShowTablePropertiesDialogCommandTableCellContentAlignmentCommandUnmergeTableCellsCommand

Implements: ICommand

Inherited Members RichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.ExecuteOverride(object)RichTextBoxCommandBase.UpdateSpanStyle()RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged

Constructors

TableContextCommandBase(RadRichTextBox)

Initializes a new instance of the TableContextCommandBase class.

Declaration

cs-api-definition
public TableContextCommandBase(RadRichTextBox editor)

Parameters

editor

RadRichTextBox

The associated RadRichTextBox.

Properties

IsTableSelectionEnabledCommand

Gets a value indicating whether command must be enabled when there is selection in table. Default implementation returns false.

Declaration

cs-api-definition
protected virtual bool IsTableSelectionEnabledCommand { get; }

Property Value

bool

true if the command must be enabled; otherwise, false.

Methods

CanExecuteOverride()

Declaration

cs-api-definition
protected virtual bool CanExecuteOverride()

Returns

bool

CanExecuteOverride(object)

Performs a check whether the command can be executed specific to the command.

Declaration

cs-api-definition
protected override bool CanExecuteOverride(object parameter)

Parameters

parameter

object

The command parameter.

Returns

bool

Overrides RichTextBoxCommandBase.CanExecuteOverride(object)

GetCurrentCellStyle()

Declaration

cs-api-definition
protected virtual TableCell GetCurrentCellStyle()

Returns

TableCell