Search Results for

    Show / Hide Table of Contents

    Class CurrencyFormat

    Defines a currency symbol (e.g. $, £, USD) along with permissible options for positioning and separator

    Inheritance
    object
    CurrencyFormat
    Implements
    ICloneable
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Sdl.LanguagePlatform.Core.Tokenization
    Assembly: Sdl.LanguagePlatform.Core.dll
    Syntax
    public class CurrencyFormat : ICloneable

    Constructors

    CurrencyFormat()

    Declaration
    public CurrencyFormat()

    Properties

    Category

    Identifies equivalences if needed between currency symbols e.g. to ensure USD is localized as $

    Declaration
    public string Category { get; set; }
    Property Value
    Type Description
    string

    CurrencySymbolPositions

    The permissible position(s) for the symbol with respect to the currency amount

    Declaration
    public List<CurrencySymbolPosition> CurrencySymbolPositions { get; set; }
    Property Value
    Type Description
    List<CurrencySymbolPosition>
    Remarks

    If specified, the first position in the list is preferred when localizing.

    Separators

    The separators permissible between the symbol and the amount. This can include '\0' (no separator) or any whitespace character (space, non-break-space, wide space etc.) If null or empty, a default set of whitespace characters and '\0' will be used.

    Declaration
    public HashSet<char> Separators { get; set; }
    Property Value
    Type Description
    HashSet<char>

    Symbol

    The symbol for this currency format, e.g. $, £, USD

    Declaration
    public string Symbol { get; set; }
    Property Value
    Type Description
    string

    Methods

    Clone()

    Clone()

    Declaration
    public object Clone()
    Returns
    Type Description
    object

    A new object that is a deep copy of this instance.

    Implements

    ICloneable
    In this article
    • Constructors
      • CurrencyFormat()
    • Properties
      • Category
      • CurrencySymbolPositions
      • Separators
      • Symbol
    • Methods
      • Clone()
    • Implements
    Back to top Generated by DocFX