Applies a list style supplied directly, identified by a registered style name, or identified by a numeric string containing an ID for a style already used in the document.
Definition
Namespace:Telerik.WinForms.Documents.RichTextBoxCommands
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ChangeListStyleCommand : RichTextBoxCommandBase, ICommand
Inheritance: objectRichTextBoxCommandBaseChangeListStyleCommand
Implements:
Inherited Members
Constructors
Initializes the command for the specified editor.
public ChangeListStyleCommand(RadRichTextBox radRichTextBox)
The editor whose paragraph list style is changed.
Methods
Applies a list style resolved from the command parameter. In WinForms, a framework-element parameter must have a string-valued Tag.
protected override void ExecuteOverride(object parameter)
A ListStyle, a registered style name, or a numeric string containing an ID for a style already used in the document. In WinForms, a UI element with a string-valued Tag containing a style name or numeric ID is also accepted; a raw integer parameter is not.
Overrides:
Raises the ListStyleChangedChanged event.
protected virtual void OnListStyleChangedChanged(StylePropertyChangedEventArgs<ListStyle> e)
The previous and new list-style values.
Checks for a change to the current list style. This implementation does not resolve the current style, so it does not raise ListStyleChangedChanged.
protected override void UpdateSpanStyle()
Overrides:
Events
Occurs when the command reports a change to its current list style. The current implementation does not raise this event because it does not resolve the current style.
public event EventHandler<StylePropertyChangedEventArgs<ListStyle>> ListStyleChangedChanged