New to Telerik UI for WinForms? Start a free 30-day trial

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

Constructors

Initializes the command for the specified editor.

C#
public ChangeListStyleCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

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.

C#
protected override void ExecuteOverride(object parameter)
Parameters:parameterobject

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: RichTextBoxCommandBase.ExecuteOverride(object)

Raises the ListStyleChangedChanged event.

C#
protected virtual void OnListStyleChangedChanged(StylePropertyChangedEventArgs<ListStyle> e)
Parameters:eStylePropertyChangedEventArgs<ListStyle>

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.

C#
protected override void UpdateSpanStyle()

Overrides: RichTextBoxCommandBase.UpdateSpanStyle()

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.

C#
public event EventHandler<StylePropertyChangedEventArgs<ListStyle>> ListStyleChangedChanged