System::Globalization::NumberFormatInfo Class Referencefinal

Holds information on how to format numbers. Setter operations are only enabled on non-read-only objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...

#include "number_format_info.h"

Inherits System::Object, System::IFormatProvider, and System::ICloneable.

Public Member Functions

ASPOSECPP_SHARED_API NumberFormatInfo ()
 Default constructor (invariant NumberFormatInfo). More...
 
ASPOSECPP_SHARED_API bool get_IsReadOnly () const
 Checks if format is read-only. More...
 
ASPOSECPP_SHARED_API SharedPtr< ObjectClone () override
 Clones format info. More...
 
ASPOSECPP_SHARED_API String get_NumberDecimalSeparator () const
 Gets decimal separator. More...
 
ASPOSECPP_SHARED_API void set_NumberDecimalSeparator (const String &value)
 Sets decimal separator. More...
 
ASPOSECPP_SHARED_API int get_NumberDecimalDigits () const
 Gets number of decimal digits. More...
 
ASPOSECPP_SHARED_API void set_NumberDecimalDigits (int value)
 Sets number of decimal digits. More...
 
ASPOSECPP_SHARED_API String get_NumberGroupSeparator () const
 Gets number group separator. More...
 
ASPOSECPP_SHARED_API void set_NumberGroupSeparator (const String &value)
 Sets number group separator. More...
 
ASPOSECPP_SHARED_API String get_PercentSymbol () const
 Gets percent symbol. More...
 
ASPOSECPP_SHARED_API void set_PercentSymbol (const String &value)
 Sets percent symbol. More...
 
ASPOSECPP_SHARED_API String get_PerMilleSymbol () const
 Gets permille symbol. More...
 
ASPOSECPP_SHARED_API void set_PerMilleSymbol (const String &value)
 Sets permille symbol. More...
 
ASPOSECPP_SHARED_API String get_CurrencySymbol () const
 Gets currency symbol. More...
 
ASPOSECPP_SHARED_API void set_CurrencySymbol (const String &value)
 Sets currency symbol. More...
 
ASPOSECPP_SHARED_API String get_PositiveSign () const
 Gets positive sign. More...
 
ASPOSECPP_SHARED_API void set_PositiveSign (const String &value)
 Sets positive sign. More...
 
ASPOSECPP_SHARED_API String get_NegativeSign () const
 Gets negative sign. More...
 
ASPOSECPP_SHARED_API void set_NegativeSign (const String &value)
 Sets negative sign. More...
 
ASPOSECPP_SHARED_API String get_CurrencyGroupSeparator () const
 Gets currency group separator. More...
 
ASPOSECPP_SHARED_API void set_CurrencyGroupSeparator (const String &value)
 Sets currency group separator. More...
 
ASPOSECPP_SHARED_API String get_CurrencyDecimalSeparator () const
 Gets currency decimal separator. More...
 
ASPOSECPP_SHARED_API void set_CurrencyDecimalSeparator (const String &value)
 Sets currency decimal separator. More...
 
ASPOSECPP_SHARED_API int get_CurrencyDecimalDigits () const
 Gets number of currency decimal digits. More...
 
ASPOSECPP_SHARED_API void set_CurrencyDecimalDigits (int value)
 Sets number of currency decimal digits. More...
 
ASPOSECPP_SHARED_API ArrayPtr< int > get_CurrencyGroupSizes () const
 Gets number of currency decimal digits per group. More...
 
ASPOSECPP_SHARED_API void set_CurrencyGroupSizes (const ArrayPtr< int > &value)
 Sets number of currency decimal digits per group. More...
 
ASPOSECPP_SHARED_API int get_CurrencyNegativePattern () const
 Gets currency negative pattern. More...
 
ASPOSECPP_SHARED_API void set_CurrencyNegativePattern (int value)
 Sets currency negative pattern. More...
 
ASPOSECPP_SHARED_API int get_CurrencyPositivePattern () const
 Gets currency positive pattern. More...
 
ASPOSECPP_SHARED_API void set_CurrencyPositivePattern (int value)
 Sets currency positive pattern. More...
 
ASPOSECPP_SHARED_API String get_NaNSymbol () const
 Gets Not-a-Number symbol. More...
 
ASPOSECPP_SHARED_API void set_NaNSymbol (const String &value)
 Sets Not-a-Number symbol. More...
 
ASPOSECPP_SHARED_API String get_PositiveInfinitySymbol () const
 Gets positive infinity symbol. More...
 
ASPOSECPP_SHARED_API void set_PositiveInfinitySymbol (const String &value)
 Sets positive infinity symbol. More...
 
ASPOSECPP_SHARED_API String get_NegativeInfinitySymbol () const
 Gets negative infinity symbol. More...
 
ASPOSECPP_SHARED_API void set_NegativeInfinitySymbol (const String &value)
 Sets negative infinity symbol. More...
 
ASPOSECPP_SHARED_API ArrayPtr< int > get_NumberGroupSizes () const
 Gets numbers of digits per group. More...
 
ASPOSECPP_SHARED_API void set_NumberGroupSizes (const ArrayPtr< int > &value)
 Sets numbers of digits per group. More...
 
ASPOSECPP_SHARED_API int get_NumberNegativePattern () const
 Gets number negative pattern. More...
 
ASPOSECPP_SHARED_API void set_NumberNegativePattern (int value)
 Sets number negative pattern. More...
 
ASPOSECPP_SHARED_API int get_PercentDecimalDigits () const
 Gets number of decimal places in percent values. More...
 
ASPOSECPP_SHARED_API void set_PercentDecimalDigits (int value)
 Sets number of decimal places in percent values. More...
 
ASPOSECPP_SHARED_API String get_PercentDecimalSeparator () const
 Gets decimal separator in percent values. More...
 
ASPOSECPP_SHARED_API void set_PercentDecimalSeparator (const String &value)
 Sets decimal separator in percent values. More...
 
ASPOSECPP_SHARED_API String get_PercentGroupSeparator () const
 Gets group separator in percent values. More...
 
ASPOSECPP_SHARED_API void set_PercentGroupSeparator (const String &value)
 Sets group separator in percent values. More...
 
ASPOSECPP_SHARED_API ArrayPtr< int > get_PercentGroupSizes () const
 Gets numbers of digits per percent value group. More...
 
ASPOSECPP_SHARED_API void set_PercentGroupSizes (const ArrayPtr< int > &value)
 Sets numbers of digits per percent value group. More...
 
ASPOSECPP_SHARED_API int get_PercentNegativePattern () const
 Gets percent negative pattern. More...
 
ASPOSECPP_SHARED_API void set_PercentNegativePattern (int value)
 Sets percent negative pattern. More...
 
ASPOSECPP_SHARED_API int get_PercentPositivePattern () const
 Gets percent positive pattern. More...
 
ASPOSECPP_SHARED_API void set_PercentPositivePattern (int value)
 Sets percent positive pattern. More...
 
ASPOSECPP_SHARED_API ArrayPtr< Stringget_NativeDigits () const
 Gets digits symbols (0 through 9). More...
 
ASPOSECPP_SHARED_API void set_NativeDigits (const ArrayPtr< String > &value)
 Sets digits symbols (0 through 9). More...
 
ASPOSECPP_SHARED_API DigitShapes get_DigitSubstitution () const
 Gets a value that specifies how to display shape of a digit. More...
 
ASPOSECPP_SHARED_API void set_DigitSubstitution (DigitShapes value)
 Sets a value that specifies how to display shape of a digit. More...
 
ASPOSECPP_SHARED_API SharedPtr< ObjectGetFormat (const TypeInfo &format_type) override
 Gets formatter of specific type. More...
 
NumberFormatInfooperator= (const NumberFormatInfo &)=delete
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API String ToString () const
 Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Static Public Member Functions

static ASPOSECPP_SHARED_API NumberFormatInfoPtr get_CurrentInfo ()
 Gets current thread culture-defined number format info. More...
 
static ASPOSECPP_SHARED_API const NumberFormatInfoPtrget_InvariantInfo ()
 Gets invariant culture-defined number format info. More...
 
static ASPOSECPP_SHARED_API NumberFormatInfoPtr GetInstance (const IFormatProviderPtr &provider)
 Gets formatter associated with format provider. More...
 
static ASPOSECPP_SHARED_API NumberFormatInfoPtr ReadOnly (NumberFormatInfoPtr nfi)
 Gets read-only version of formatter. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Protected Member Functions

ASPOSECPP_SHARED_API ~NumberFormatInfo () override
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 

Detailed Description

Holds information on how to format numbers. Setter operations are only enabled on non-read-only objects. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

Constructor & Destructor Documentation

◆ NumberFormatInfo()

ASPOSECPP_SHARED_API System::Globalization::NumberFormatInfo::NumberFormatInfo ( )

Default constructor (invariant NumberFormatInfo).

◆ ~NumberFormatInfo()

ASPOSECPP_SHARED_API System::Globalization::NumberFormatInfo::~NumberFormatInfo ( )
overrideprotected

Destructor.

Member Function Documentation

◆ Clone()

ASPOSECPP_SHARED_API SharedPtr<Object> System::Globalization::NumberFormatInfo::Clone ( )
overridevirtual

Clones format info.

Returns
New object copied from the current NumberFormatInfo.

Implements System::ICloneable.

◆ get_CurrencyDecimalDigits()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_CurrencyDecimalDigits ( ) const

Gets number of currency decimal digits.

Returns
Number of currency decimal digits.

◆ get_CurrencyDecimalSeparator()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_CurrencyDecimalSeparator ( ) const

Gets currency decimal separator.

Returns
Currency decimal separator.

◆ get_CurrencyGroupSeparator()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_CurrencyGroupSeparator ( ) const

Gets currency group separator.

Returns
Currency group separator.

◆ get_CurrencyGroupSizes()

ASPOSECPP_SHARED_API ArrayPtr<int> System::Globalization::NumberFormatInfo::get_CurrencyGroupSizes ( ) const

Gets number of currency decimal digits per group.

Returns
Number of currency decimal digits per group.

◆ get_CurrencyNegativePattern()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_CurrencyNegativePattern ( ) const

Gets currency negative pattern.

Returns
Index of the pattern in array {"($n)", "-$n", "$-n", "$n-", "(n$)", "-n$", "n-$", "n$-", "-n $", "-$ n", "n $-", "$ n-", "$ -n", "n- $", "($ n)", "(n $)"}, where "n" is number, "-" is minus sign and "$" is currency symbol.

◆ get_CurrencyPositivePattern()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_CurrencyPositivePattern ( ) const

Gets currency positive pattern.

Returns
Index of the pattern in array {"$n", "n$", "$ n", "n $"}, where "n" is number and "$" is currency symbol.

◆ get_CurrencySymbol()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_CurrencySymbol ( ) const

Gets currency symbol.

Returns
Currency symbol.

◆ get_CurrentInfo()

static ASPOSECPP_SHARED_API NumberFormatInfoPtr System::Globalization::NumberFormatInfo::get_CurrentInfo ( )
static

Gets current thread culture-defined number format info.

Returns
Format info object.

◆ get_DigitSubstitution()

ASPOSECPP_SHARED_API DigitShapes System::Globalization::NumberFormatInfo::get_DigitSubstitution ( ) const

Gets a value that specifies how to display shape of a digit.

Returns
Value that specifies how to display shape of a digit.

◆ get_InvariantInfo()

static ASPOSECPP_SHARED_API const NumberFormatInfoPtr& System::Globalization::NumberFormatInfo::get_InvariantInfo ( )
static

Gets invariant culture-defined number format info.

Returns
Format info object.

◆ get_IsReadOnly()

ASPOSECPP_SHARED_API bool System::Globalization::NumberFormatInfo::get_IsReadOnly ( ) const

Checks if format is read-only.

Returns
True if format is read-only, false otherwise.

◆ get_NaNSymbol()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_NaNSymbol ( ) const

Gets Not-a-Number symbol.

Returns
Not-a-Number symbol.

◆ get_NativeDigits()

ASPOSECPP_SHARED_API ArrayPtr<String> System::Globalization::NumberFormatInfo::get_NativeDigits ( ) const

Gets digits symbols (0 through 9).

Returns
Array of digit symbols.

◆ get_NegativeInfinitySymbol()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_NegativeInfinitySymbol ( ) const

Gets negative infinity symbol.

Returns
Negative infinity symbol.

◆ get_NegativeSign()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_NegativeSign ( ) const

Gets negative sign.

Returns
Negative sign.

◆ get_NumberDecimalDigits()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_NumberDecimalDigits ( ) const

Gets number of decimal digits.

Returns
Number of digits.

◆ get_NumberDecimalSeparator()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_NumberDecimalSeparator ( ) const

Gets decimal separator.

Returns
Decimal separator.

◆ get_NumberGroupSeparator()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_NumberGroupSeparator ( ) const

Gets number group separator.

Returns
Group separator.

◆ get_NumberGroupSizes()

ASPOSECPP_SHARED_API ArrayPtr<int> System::Globalization::NumberFormatInfo::get_NumberGroupSizes ( ) const

Gets numbers of digits per group.

Returns
Array of digits per group, left to right; each element must be 1 to 9, last one can be 0 which means "combine all"; last element repeats.

◆ get_NumberNegativePattern()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_NumberNegativePattern ( ) const

Gets number negative pattern.

Returns
Index of the pattern in array {"(n)", "-n", "- n", "n-", "n -"}, where "n" is number and "-" is minus sign.

◆ get_PercentDecimalDigits()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_PercentDecimalDigits ( ) const

Gets number of decimal places in percent values.

Returns
Number of decimal places in percent values.

◆ get_PercentDecimalSeparator()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_PercentDecimalSeparator ( ) const

Gets decimal separator in percent values.

Returns
Decimal separator in percent values.

◆ get_PercentGroupSeparator()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_PercentGroupSeparator ( ) const

Gets group separator in percent values.

Returns
Group separator in percent values.

◆ get_PercentGroupSizes()

ASPOSECPP_SHARED_API ArrayPtr<int> System::Globalization::NumberFormatInfo::get_PercentGroupSizes ( ) const

Gets numbers of digits per percent value group.

Returns
Array of digits per group, left to right; each element must be 1 to 9, last one can be 0 which means "combine all"; last element repeats.

◆ get_PercentNegativePattern()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_PercentNegativePattern ( ) const

Gets percent negative pattern.

Returns
Index of the pattern in array {"-n %", "-n%", "-%n", "%-n", "%n-", "n-%", "n%-", "-% n", "n %-", "% n-", "% -n", "n- %"}, where "n" is number, "%" is percent sign and "-" is minus sign.

◆ get_PercentPositivePattern()

ASPOSECPP_SHARED_API int System::Globalization::NumberFormatInfo::get_PercentPositivePattern ( ) const

Gets percent positive pattern.

Returns
Index of the pattern in array {"n %", "n%", "%n", "% n"}, where "n" is number and "%" is percent sign.

◆ get_PercentSymbol()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_PercentSymbol ( ) const

Gets percent symbol.

Returns
Percent symbol.

◆ get_PerMilleSymbol()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_PerMilleSymbol ( ) const

Gets permille symbol.

Returns
Permille symbol.

◆ get_PositiveInfinitySymbol()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_PositiveInfinitySymbol ( ) const

Gets positive infinity symbol.

Returns
Positive infinity symbol.

◆ get_PositiveSign()

ASPOSECPP_SHARED_API String System::Globalization::NumberFormatInfo::get_PositiveSign ( ) const

Gets positive sign.

Returns
Positive sign.

◆ GetFormat()

ASPOSECPP_SHARED_API SharedPtr<Object> System::Globalization::NumberFormatInfo::GetFormat ( const TypeInfo format_type)
overridevirtual

Gets formatter of specific type.

Parameters
format_typeType of formatter to get; only NumberFormatInfo type is supported.
Returns
Formatter or null if not availsable.

Implements System::IFormatProvider.

◆ GetInstance()

static ASPOSECPP_SHARED_API NumberFormatInfoPtr System::Globalization::NumberFormatInfo::GetInstance ( const IFormatProviderPtr provider)
static

Gets formatter associated with format provider.

Parameters
providerProvider to get format for.
Returns
Formatter associated with format provider or current thread's format if unavailable.

◆ operator=()

NumberFormatInfo& System::Globalization::NumberFormatInfo::operator= ( const NumberFormatInfo )
delete

◆ ReadOnly()

static ASPOSECPP_SHARED_API NumberFormatInfoPtr System::Globalization::NumberFormatInfo::ReadOnly ( NumberFormatInfoPtr  nfi)
static

Gets read-only version of formatter.

Parameters
nfiFormatter to get read-only version of.
Returns
if nfi is read-only, returns it, otherwise creates a copy of it and marks it as read-only.

◆ set_CurrencyDecimalDigits()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_CurrencyDecimalDigits ( int  value)

Sets number of currency decimal digits.

Parameters
valueNumber of currency decimal digits.

◆ set_CurrencyDecimalSeparator()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_CurrencyDecimalSeparator ( const String value)

Sets currency decimal separator.

Parameters
valueCurrency decimal separator.

◆ set_CurrencyGroupSeparator()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_CurrencyGroupSeparator ( const String value)

Sets currency group separator.

Parameters
valueCurrency group separator.

◆ set_CurrencyGroupSizes()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_CurrencyGroupSizes ( const ArrayPtr< int > &  value)

Sets number of currency decimal digits per group.

Parameters
valueNumber of currency decimal digits per group.

◆ set_CurrencyNegativePattern()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_CurrencyNegativePattern ( int  value)

Sets currency negative pattern.

Parameters
valueIndex of the pattern in array {"($n)", "-$n", "$-n", "$n-", "(n$)", "-n$", "n-$", "n$-", "-n $", "-$ n", "n $-", "$ n-", "$ -n", "n- $", "($ n)", "(n $)"}, where "n" is number, "-" is minus sign and "$" is currency symbol.

◆ set_CurrencyPositivePattern()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_CurrencyPositivePattern ( int  value)

Sets currency positive pattern.

Parameters
valueIndex of the pattern in array {"$n", "n$", "$ n", "n $"}, where "n" is number and "$" is currency symbol.

◆ set_CurrencySymbol()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_CurrencySymbol ( const String value)

Sets currency symbol.

Parameters
valueCurrency symbol.

◆ set_DigitSubstitution()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_DigitSubstitution ( DigitShapes  value)

Sets a value that specifies how to display shape of a digit.

Parameters
valueValue that specifies how to display shape of a digit.

◆ set_NaNSymbol()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NaNSymbol ( const String value)

Sets Not-a-Number symbol.

Parameters
valueNot-a-Number symbol.

◆ set_NativeDigits()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NativeDigits ( const ArrayPtr< String > &  value)

Sets digits symbols (0 through 9).

Parameters
valueArray of digit symbols.

◆ set_NegativeInfinitySymbol()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NegativeInfinitySymbol ( const String value)

Sets negative infinity symbol.

Parameters
valueNegative infinity symbol.

◆ set_NegativeSign()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NegativeSign ( const String value)

Sets negative sign.

Parameters
valueNegative sign.

◆ set_NumberDecimalDigits()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NumberDecimalDigits ( int  value)

Sets number of decimal digits.

Parameters
valueNumber of digits.

◆ set_NumberDecimalSeparator()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NumberDecimalSeparator ( const String value)

Sets decimal separator.

Parameters
valueDecimal separator.

◆ set_NumberGroupSeparator()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NumberGroupSeparator ( const String value)

Sets number group separator.

Parameters
valueGroup separator.

◆ set_NumberGroupSizes()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NumberGroupSizes ( const ArrayPtr< int > &  value)

Sets numbers of digits per group.

Parameters
valueArray of digits per group, left to right; each element must be 1 to 9, last one can be 0 which means "combine all"; last element repeats.

◆ set_NumberNegativePattern()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_NumberNegativePattern ( int  value)

Sets number negative pattern.

Parameters
valueIndex of the pattern in array {"(n)", "-n", "- n", "n-", "n -"}, where "n" is number and "-" is minus sign.

◆ set_PercentDecimalDigits()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PercentDecimalDigits ( int  value)

Sets number of decimal places in percent values.

Parameters
valueNumber of decimal places in percent values.

◆ set_PercentDecimalSeparator()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PercentDecimalSeparator ( const String value)

Sets decimal separator in percent values.

Parameters
valueDecimal separator in percent values.

◆ set_PercentGroupSeparator()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PercentGroupSeparator ( const String value)

Sets group separator in percent values.

Parameters
valueGroup separator in percent values.

◆ set_PercentGroupSizes()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PercentGroupSizes ( const ArrayPtr< int > &  value)

Sets numbers of digits per percent value group.

Parameters
valueArray of digits per group, left to right; each element must be 1 to 9, last one can be 0 which means "combine all"; last element repeats.

◆ set_PercentNegativePattern()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PercentNegativePattern ( int  value)

Sets percent negative pattern.

Parameters
valueIndex of the pattern in array {"-n %", "-n%", "-%n", "%-n", "%n-", "n-%", "n%-", "-% n", "n %-", "% n-", "% -n", "n- %"}, where "n" is number, "%" is percent sign and "-" is minus sign.

◆ set_PercentPositivePattern()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PercentPositivePattern ( int  value)

Sets percent positive pattern.

Parameters
valueIndex of the pattern in array {"n %", "n%", "%n", "% n"}, where "n" is number and "%" is percent sign.

◆ set_PercentSymbol()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PercentSymbol ( const String value)

Sets percent symbol.

Parameters
valuePercent symbol.

◆ set_PerMilleSymbol()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PerMilleSymbol ( const String value)

Sets permille symbol.

Parameters
valuePermille symbol.

◆ set_PositiveInfinitySymbol()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PositiveInfinitySymbol ( const String value)

Sets positive infinity symbol.

Parameters
valuePositive infinity symbol.

◆ set_PositiveSign()

ASPOSECPP_SHARED_API void System::Globalization::NumberFormatInfo::set_PositiveSign ( const String value)

Sets positive sign.

Parameters
valuePositive sign.