Gets or sets the starting number for a numbered list.

Syntax

public int FirstNumber { get; set; }
Public Property FirstNumber() As Integer

Examples

The following example sets value 5 as the starting number for a numbered list using property FirstNumber.

TXTextControl.ListFormat lf = new TXTextControl.ListFormat();
lf.Type = TXTextControl.ListType.Numbered;
lf.FirstNumber = 5;
lf.BulletCharacter = '>';
lf.BulletSize = 12;

textControl1.Selection.ListFormat = lf;
Dim lf As TXTextControl.ListFormat = New TXTextControl.ListFormat()
lf.Type = TXTextControl.ListType.Numbered
lf.FirstNumber = 5
lf.BulletCharacter = ">"
lf.BulletSize = 12

TextControl1.Selection.ListFormat = lf

Remarks

The property's default value is 1.

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