Class
ToggleCommandBase

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:

cs-api-definition
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

ToggleCommandBase(RadRichTextBox)

Declaration

cs-api-definition
public ToggleCommandBase(RadRichTextBox editor)

Parameters

editor

RadRichTextBox

Methods

GetToggleState()

Declaration

cs-api-definition
protected abstract bool GetToggleState()

Returns

bool

OnToggleStateChanged(StylePropertyChangedEventArgs<bool>)

Declaration

cs-api-definition
protected virtual void OnToggleStateChanged(StylePropertyChangedEventArgs<bool> e)

Parameters

e

StylePropertyChangedEventArgs<bool>

UpdateSpanStyle()

Declaration

cs-api-definition
protected override void UpdateSpanStyle()

Overrides RichTextBoxCommandBase.UpdateSpanStyle()

Events

ToggleStateChanged

Declaration

cs-api-definition
public event EventHandler<StylePropertyChangedEventArgs<bool>> ToggleStateChanged

Event Value

EventHandler<StylePropertyChangedEventArgs<bool>>