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

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

Definition

Constructors

Initializes the command for the specified editor.

C#
public ToggleBulletsCommand(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The rich text box whose paragraphs this command formats.

Methods

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

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 bulleted.

C#
protected override bool GetToggleState()
Returns:

bool

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

Overrides: ToggleCommandBase.GetToggleState()