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

Base for commands that toggle a table-look option on the table containing the caret.

Definition

Namespace:Telerik.WinForms.Documents.RichTextBoxCommands

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public abstract class ToggleTableLookCommandBase : ToggleCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseToggleCommandBaseToggleTableLookCommandBase

Derived Classes: ToggleTableLookColumnBandingOptionCommandToggleTableLookFirstColumnOptionCommandToggleTableLookFirstRowOptionCommandToggleTableLookLastColumnOptionCommandToggleTableLookLastRowOptionCommandToggleTableLookRowBandingOptionCommand...

Implements: ICommand

Inherited Members ToggleCommandBase.UpdateSpanStyle()ToggleCommandBase.OnToggleStateChanged(StylePropertyChangedEventArgs<bool>)ToggleCommandBase.ToggleStateChangedRichTextBoxCommandBase.CanExecute(object)RichTextBoxCommandBase.Execute()RichTextBoxCommandBase.Execute(object)RichTextBoxCommandBase.GetSelectedInlineOrSelectCurrent()RichTextBoxCommandBase.Execute(object, bool)RichTextBoxCommandBase.UpdateSectionStyle()RichTextBoxCommandBase.GetCurrentParagraphStyle()RichTextBoxCommandBase.GetCurrentSpanStyle()RichTextBoxCommandBase.GetCurrentSectionStyle()RichTextBoxCommandBase.OnCanExecuteChanged()RichTextBoxCommandBase.AssociatedRichTextBoxRichTextBoxCommandBase.CanExecuteInReadOnlyModeRichTextBoxCommandBase.CanExecuteInReadOnlyRangeRichTextBoxCommandBase.IsDeletingCommandRichTextBoxCommandBase.CanExecuteBehaviorInProtectedDocumentRichTextBoxCommandBase.ShouldFocusCaretAfterExecuteRichTextBoxCommandBase.SupportedTargetsRichTextBoxCommandBase.EnabledRichTextBoxCommandBase.CanExecuteChanged...

Constructors

Initializes the command for the specified editor.

C#
public ToggleTableLookCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box whose current table look can be changed.

Methods

Returns the cached availability based on whether the caret is inside a table.

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

Not used.

Returns:

bool

true when the caret is inside a table; otherwise, false.

Overrides: RichTextBoxCommandBase.CanExecuteOverride(object)

Applies this command's table-look option to the specified table.

C#
protected abstract void ChangeTableLookProperty(Table table)
Parameters:tableTable

The table whose look option is changed.

Changes the table-look option on the table containing the caret.

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

Not used.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets this command's option state from the specified table.

C#
protected abstract bool GetOptionState(Table table)
Parameters:tableTable

The table to inspect.

Returns:

bool

The current value of the option controlled by this command.

Gets the option state for the table containing the caret.

C#
protected override bool GetToggleState()
Returns:

bool

The current table-look option, or false when the caret is not in a table.

Overrides: ToggleCommandBase.GetToggleState()