Class Currency
- Namespace
- Dynamicweb.Ecommerce.International
- Assembly
- Dynamicweb.Ecommerce.dll
Represents the currency.
- Inheritance
-
Currency
- Implements
- Inherited Members
Constructors
Currency()
Creates a new instance of Currency.
Properties
Code
Gets or sets the currency code.
Property Value
CultureInfo
Gets or sets the culture information.
Property Value
IsDefault
Gets or sets the value indicating whether the currency is default.
Property Value
NegativePattern
Gets or sets the negative pattern for this Currency. Only used if Culture
Property Value
PayGatewayCode
Gets or sets the code of pay gateway.
Property Value
PositivePattern
Gets or sets the positive pattern for this Currency. Only used if Culture
Property Value
Rate
Gets or sets the rate.
Property Value
Rounding
Gets or sets the Rounding.
Property Value
RoundingId
Gets or sets the rounding id.
Property Value
Symbol
Gets or sets the symbol.
Property Value
SymbolPlace
Gets or sets the symbol place.
Property Value
Translations
Gets the translations
Property Value
UseCurrencyCodeForFormat
Gets or sets a value indicating whether to use currency code for formatting prices instead of symbo, i.e. 'EUR 1000' instead of 'Ђ 1000'.
Property Value
- bool
trueif currency code should bed used for price formatting; otherwise,false.
Methods
Clone()
Creates a new instance of a class with the same value as an existing instance.
Returns
Remarks
Method performs a deep copy of all properties except the IsReadOnly property. IsReadOnly property always is set to False.
Equals(object?)
Determines whether the specified object is equal to the current object.
Parameters
objobjectThe object to compare with the current object.
Returns
GetCultureInfo()
Gets the CultureInfo related to the regional settings set on the currency.
Returns
- Culture
Info The
related to the regional settings set on the currency. If none is specified, it will use the culture of the current contextCultureInfo
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.
GetName(string)
Gets the name of the currency for the given language.
Parameters
languageIdstring
Returns
GetName(string, LanguageService)
Gets the name of the currency for the given language.
Parameters
languageIdstringlanguageServiceLanguageService The language service.
Returns
SetName(string, string)
Sets the name of the currency for the given language.