Class CurrencyFormat
Defines a currency symbol (e.g. $, £, USD) along with permissible options for positioning and separator
Inheritance
System.Object
CurrencyFormat
Implements
System.ICloneable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.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 |
---|---|
System.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 |
---|---|
System.Collections.Generic.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 |
---|---|
System.Collections.Generic.HashSet<System.Char> |
Symbol
The symbol for this currency format, e.g. $, £, USD
Declaration
public string Symbol { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone()
System.ICloneable.Clone()
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a deep copy of this instance. |
Implements
System.ICloneable