iText 9.5.0 API
iText.Kernel.Numbering.EnglishAlphabetNumbering Class Reference

This class is responsible for converting integer numbers to their English alphabet letter representations. More...

Static Public Member Functions

static String  ToLatinAlphabetNumberLowerCase (int number)
  Converts the given number to its English alphabet lowercase string representation. More...
 
static String  ToLatinAlphabetNumberUpperCase (int number)
  Converts the given number to its English alphabet uppercase string representation. More...
 
static String  ToLatinAlphabetNumber (int number, bool upperCase)
  Converts the given number to its English alphabet string representation. More...
 

Static Package Attributes

static readonly char[]  ALPHABET_LOWERCASE
 
static readonly char[]  ALPHABET_UPPERCASE
 
const int  ALPHABET_LENGTH = 26
 

Detailed Description

This class is responsible for converting integer numbers to their English alphabet letter representations.

Member Function Documentation

◆ ToLatinAlphabetNumber()

static String iText.Kernel.Numbering.EnglishAlphabetNumbering.ToLatinAlphabetNumber ( int  number,
bool  upperCase 
)
inlinestatic

Converts the given number to its English alphabet string representation.

Converts the given number to its English alphabet string representation. E.g. for upperCase set to false, 1 will be converted to "a", 2 to "b", ..., 27 to "aa", and so on.

Parameters
number the number greater than zero to be converted
upperCase whether to use uppercase or lowercase alphabet
Returns
English alphabet string representation of an integer

◆ ToLatinAlphabetNumberLowerCase()

static String iText.Kernel.Numbering.EnglishAlphabetNumbering.ToLatinAlphabetNumberLowerCase ( int  number )
inlinestatic

Converts the given number to its English alphabet lowercase string representation.

Converts the given number to its English alphabet lowercase string representation. E.g. 1 will be converted to "a", 2 to "b", ..., 27 to "aa", and so on.

Parameters
number the number greater than zero to be converted
Returns
English alphabet lowercase string representation of an integer

◆ ToLatinAlphabetNumberUpperCase()

static String iText.Kernel.Numbering.EnglishAlphabetNumbering.ToLatinAlphabetNumberUpperCase ( int  number )
inlinestatic

Converts the given number to its English alphabet uppercase string representation.

Converts the given number to its English alphabet uppercase string representation. E.g. 1 will be converted to "A", 2 to "B", ..., 27 to "AA", and so on.

Parameters
number the number greater than zero to be converted
Returns
English alphabet uppercase string representation of an integer