ToggleCommandBase
Base for formatting commands that toggle a style and report changes to its current on/off state.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public abstract class ToggleCommandBase : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseToggleCommandBase
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes the toggle command for the specified editor.
public ToggleCommandBase(RadRichTextBox editor)
The rich text box whose formatting the command toggles.
Methods
Raises the ToggleStateChanged event.
protected virtual void OnToggleStateChanged(StylePropertyChangedEventArgs<bool> e)
The old and new toggle-state values.
Compares the current toggle state with the cached state and raises ToggleStateChanged when they differ. The first event may report the cache's initial false value as its old value.
protected override void UpdateSpanStyle()
Overrides:
Events
Occurs when the command observes a different toggle state for the current span. The first event may report the cache's initial false value as its old value.
public event EventHandler<StylePropertyChangedEventArgs<bool>> ToggleStateChanged