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

Toggles bold formatting for the current text selection.

Definition

Constructors

Initializes the command for the specified editor.

C#
public ToggleBoldCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The rich text box whose text formatting this command toggles.

Methods

Toggles bold formatting in the associated editor; the command parameter is not used.

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

Unused.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)

Gets whether the current span's font weight is exactly Bold.

C#
protected override bool GetToggleState()
Returns:

bool

true when the current span is bold; otherwise, false.

Overrides: ToggleCommandBase.GetToggleState()