New to Telerik UI for WPFStart a free 30-day trial

Represents the base class for toggle commands in the Telerik RichTextBox. This class provides functionality to create commands that can toggle the state of certain properties.

Definition

Namespace:Telerik.Windows.Documents.RichTextBoxCommands

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public abstract class ToggleCommandBase : RichTextBoxCommandBase, ICommand

Inheritance: objectRichTextBoxCommandBaseToggleCommandBase

Derived Classes: ToggleBoldCommandToggleBulletsCommandToggleCommentsCommandToggleDifferentFirstPageHeaderFooterCommandToggleDifferentOddAndEvenPagesHeaderFooterCommandToggleDocumentProtectionCommandToggleFormattingSymbolsCommandToggleHeaderFooterLinkToPreviousCommandToggleItalicCommandToggleMergeFieldsHighlightCommandToggleNumberedCommandToggleSpellCheckingCommandToggleStrikethroughCommandToggleSubscriptCommandToggleSuperscriptCommandToggleTableLookCommandBaseToggleTableRowRepeatOnEveryPageCommandToggleTrackChangesCommandToggleUnderlineCommand...

Implements: ICommand

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

Constructors

C#
public ToggleCommandBase(RadRichTextBox editor)
Parameters:editorRadRichTextBox

Methods

C#
protected abstract bool GetToggleState()
Returns:

bool

C#
protected virtual void OnToggleStateChanged(StylePropertyChangedEventArgs<bool> e)
Parameters:eStylePropertyChangedEventArgs<bool>
C#
protected override void UpdateSpanStyle()

Overrides: RichTextBoxCommandBase.UpdateSpanStyle()

Events

C#
public event EventHandler<StylePropertyChangedEventArgs<bool>> ToggleStateChanged