Gets or sets a value determining whether a new numbered list begins.

Syntax

public bool RestartNumbering { get; set; }
Public Property RestartNumbering() As Boolean

Examples

The following example sets the 'RestartNumbering' property to 'false'. This means that a new numbered list does NOT begin.

TXTextControl.ListFormat lf = new TXTextControl.ListFormat();
lf.Type = TXTextControl.ListType.Numbered;
lf.FirstNumber = 5;
lf.FontName = "Calibri";
lf.BulletCharacter = '>';
lf.BulletSize = 12;
lf.FormatCharacter = TXTextControl.ListFormatCharacter.Tab;
lf.HangingIndent = 370;
lf.LeftIndent = 10;
lf.Level = 2;
lf.RestartNumbering = false;

textControl1.Selection.ListFormat = lf;
Dim lf As TXTextControl.ListFormat = New TXTextControl.ListFormat()
lf.Type = TXTextControl.ListType.Numbered
lf.FirstNumber = 5
lf.FontName = "Calibri"
lf.BulletCharacter = ">"
lf.BulletSize = 12
lf.FormatCharacter = TXTextControl.ListFormatCharacter.Tab
lf.HangingIndent = 370
lf.LeftIndent = 10
lf.Level = 2
lf.RestartNumbering = False

TextControl1.Selection.ListFormat = lf

Remarks

The property's default value is false.

The property returns its default value when the text selection contains multiple paragraphs with mixed settings or when the text selection does not contain a numbered list. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.

Further Reading

Learn more about the TXTextControl.ListFormat.RestartNumbering Property in the Text Control Blog: