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

Applies the default numbered list style to the current paragraphs or removes list formatting when all are already numbered.

Definition

Constructors

Initializes the command for the specified editor.

C#
public ToggleNumberedCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The rich text box whose paragraphs this command formats.

Methods

Adds the default numbered style, or removes list formatting if the current paragraphs are already numbered.

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

Unused.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether all nonempty selected paragraphs, or the current paragraph when there is no selection, are numbered.

C#
protected override bool GetToggleState()
Returns:

bool

true when there is no selection and the current paragraph is numbered, or when at least one nonempty selected paragraph exists and all such paragraphs are numbered; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()