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

Toggles line-number suppression for the paragraphs targeted by the current selection or caret.

Definition

Constructors

Initializes a new instance of the SuppressLineNumberingForCurrentParagraphCommand class.

C#
public SuppressLineNumberingForCurrentParagraphCommand(RadRichTextBox editor)
Parameters:editorRadRichTextBox

The RadRichTextBox which the SuppressLineNumberingForCurrentParagraphCommand belongs.

Methods

Suppresses line numbering for the target paragraphs, or restores it if any target is already suppressed.

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

Not used; the target paragraphs come from the current selection or caret.

Overrides: RichTextBoxCommandBase.ExecuteOverride(object)