Class SpellingFormatter
Localises a number into its words.
Inheritance
SpellingFormatter
Assembly: Sepia.Globalization.dll
public class SpellingFormatter
Properties
|
Improve this Doc
View Source
The source for localisation information.
Declaration
public Locale Locale { get; set; }
Property Value
|
Improve this Doc
View Source
The options to apply when spelling a number.
Declaration
public SpellingOptions Options { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Creates or reuses a spelling formatter for the specified Locale.
Declaration
public static SpellingFormatter Create(Locale locale, SpellingOptions options = null)
Parameters
| Type |
Name |
Description |
| Locale |
locale |
The locale.
|
| SpellingOptions |
options |
The options to apply when spelling out a number.
|
Returns
| Type |
Description |
| SpellingFormatter |
The spelling formatter that is the best for the locale.
|
|
Improve this Doc
View Source
Declaration
public string Format(decimal value)
Parameters
| Type |
Name |
Description |
| Decimal |
value |
|
Returns
|
Improve this Doc
View Source
Declaration
public string Format(double value)
Parameters
| Type |
Name |
Description |
| Double |
value |
|
Returns
|
Improve this Doc
View Source
Declaration
public string Format(long value)
Parameters
| Type |
Name |
Description |
| Int64 |
value |
|
Returns