Show / Hide Table of Contents

Class SpellingFormatter

Localises a number into its words.

Inheritance
Object
SpellingFormatter
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: Sepia.Globalization.Numbers
Assembly: Sepia.Globalization.dll
Syntax
public class SpellingFormatter
Remarks

In English the number 321 is represented as 'three hundred twenty-one'.

Properties

| Improve this Doc View Source

Locale

The source for localisation information.

Declaration
public Locale Locale { get; set; }
Property Value
Type Description
Locale
| Improve this Doc View Source

Options

The options to apply when spelling a number.

Declaration
public SpellingOptions Options { get; set; }
Property Value
Type Description
SpellingOptions

Methods

| Improve this Doc View Source

Create(Locale, SpellingOptions)

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

Format(Decimal)

Declaration
public string Format(decimal value)
Parameters
Type Name Description
Decimal value
Returns
Type Description
String
| Improve this Doc View Source

Format(Double)

Declaration
public string Format(double value)
Parameters
Type Name Description
Double value
Returns
Type Description
String
| Improve this Doc View Source

Format(Int64)

Declaration
public string Format(long value)
Parameters
Type Name Description
Int64 value
Returns
Type Description
String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX