FormatNumber

Syntax

FormatNumber [.Points = number] [, .Color = number] [, .Before = text] [, .Type = number] [, .After = text] [, .StartAt = number] [, .Include = number] [, .Alignment = number] [, .Indent = number or text] [, .Space = number or text] [, .Hang = number] [, .Font = text] [, .Strikethrough = number] [, .Bold = number] [, .Italic = number] [, .Underline = number]

Remarks

Numbers the selected paragraphs. The arguments for the FormatNumber statement correspond to the options in the Modify Numbered List dialog box (Numbered tab, Bullets And Numbering command, Format menu). You cannot display this dialog box using a Dialog or Dialog() instruction.

Argument

Explanation

.Points, .Color, .Font, .Strikethrough, .Bold, .Italic, .Underline

Apply character formatting to numbers at the specified level. For argument descriptions, see FormatFont.

.Before

The text, if any, you want to appear before each number.

.Type

Specifies a format for numbering lists:

0 (zero) 1, 2, 3, 4

1 I, II, III, IV

2 i, ii, iii, iv

3 A, B, C, D

4 a, b, c, d

.After

The text, if any, you want to appear after each number.

.StartAt

The number for the first selected paragraph. If .Type is 3 or 4, .StartAt corresponds to the position in the alphabet of the starting letter.

.Include

Specifies whether to include numbers and position options from the previous headings for numbers at the specified level:

0 (zero) Includes neither numbers nor position options.

1 Includes a series of numbers from higher-level headings before the numbers at the specified level.

2 Includes both numbers from higher-level headings and position options from the previous level.

.Alignment

Specifies an alignment for the numbers within the space between the left indent and the first line of text; takes effect only if .Space is 0 (zero):

0 (zero) or omitted Left

1 Centered

2 Right


Argument

Explanation

.Indent

The distance between the left indent and the first line of text, in points or a text measurement.

.Space

The distance between the number and the first line of text, in points or a text measurement.

.Hang

If 1, applies a hanging indent to the selected paragraphs.


See Also

FormatBullet, FormatBulletsAndNumbering, FormatHeadingNumber, FormatMultilevel