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

Provides the editor and operations used to restart or advance list numbering.

Definition

Namespace:Telerik.WinForms.Documents.UI.Extensibility

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class SetNumberingValueDialogContext

Inheritance: objectSetNumberingValueDialogContext

Constructors

Captures the editor and creates a document editor for applying list-numbering changes.

C#
public SetNumberingValueDialogContext(RadRichTextBox radRichTextBox)
Parameters:radRichTextBoxRadRichTextBox

The editor whose list numbering is changed.

Properties

Gets the rich text box whose current list numbering is being changed.

C#
public RadRichTextBox RadRichTextBox { get; }

Methods

Advances list numbering by the number of items between the previous number and the requested number.

C#
public void AdvanceValue(int previousParagraphNumber, int fromNumber)
Parameters:previousParagraphNumberint

The baseline number used to calculate how many values to skip before fromNumber.

fromNumberint

The number to assign to that paragraph.

Restarts numbering from the caret paragraph, or from the first selected paragraph when a selection exists. Starting indexes are applied to the caret paragraph's list, using values based on the restart paragraph's list level: that level is set to fromNumber and lower levels reset to one.

C#
public void StartNewList(int fromNumber)
Parameters:fromNumberint

The number at which the restarted list begins.