Table of Contents

Class Numerals

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.dll

Writes numbers as the numerals folios and lists are set in: arabic, roman or alphabetic.

public static class Numerals
Inheritance
Numerals
Inherited Members

Remarks

Front matter is traditionally numbered in lower-case roman — i, ii, iii — and appendices lettered; pass one of these to Folio(Func<int, string>) to number pages that way.

Methods

Arabic(int)

1, 2, 3, in the digits every culture reads.

public static string Arabic(int number)

Parameters

number int

Returns

string

Format(int, ListNumbering)

The number in the style a list is numbered in; a bulleted list has no numerals, so a bullet.

public static string Format(int number, ListNumbering numbering)

Parameters

number int
numbering ListNumbering

Returns

string

LowerAlpha(int)

a, b … z, aa, ab.

public static string LowerAlpha(int number)

Parameters

number int

Returns

string

LowerRoman(int)

i, ii, iii, as front matter is numbered.

public static string LowerRoman(int number)

Parameters

number int

Returns

string

UpperAlpha(int)

A, B … Z, AA, AB — as spreadsheet columns run, so the sequence never ends. Zero and below stay arabic.

public static string UpperAlpha(int number)

Parameters

number int

Returns

string

UpperRoman(int)

I, II, III … MMMCMXCIX. Roman numerals have no zero and nothing past 3999 is legible, so those stay arabic.

public static string UpperRoman(int number)

Parameters

number int

Returns

string