Passes a named style to the editor for the selection or clears style assignments when the parameter is null.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
C#
public class ChangeStyleNameCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeStyleNameCommand
Implements:
Inherited Members
Constructors
Creates the style-name command for the specified editor.
C#
public ChangeStyleNameCommand(RadRichTextBox editor)
The editor whose current selection receives the style change.
Methods
Raises StyleNameChanged with the previous and current style names.
C#
protected virtual void OnStyleNameChanged(StylePropertyChangedEventArgs<string> e)
The old and new style names.
Raises StyleNameChanged when the current span's style name changes.
C#
protected override void UpdateSpanStyle()
Overrides:
Events
Occurs when the command observes a change in the current span's style name.
C#
public event EventHandler<StylePropertyChangedEventArgs<string>> StyleNameChanged