Gets or sets the format of positive currency values.
[Edit]
public int CurrencyPositivePattern { set; get; } |
|
Value
A int
between 0 and 3 inclusive, containing the format of positive currency
values.
[Edit]
Exceptions
Remarks
Example
The following example demonstrates the effects of
different NumberFormatInfo.CurrencyPositivePattern property values.
C# Example |
using System;
using System.Globalization;
class Test {
public static void Main() {
NumberFormatInfo nfi = new NumberFormatInfo();
decimal myMoney = 9999999999999.00m;
for (int i = 0; i<=3; i++) {
nfi.CurrencyPositivePattern = i;
Console.WriteLine("pattern # {0}: {1}",i,myMoney.ToString("C",nfi));
}
}
}
|
The output is
pattern # 0: $9,999,999,999,999.00
pattern # 1: 9,999,999,999,999.00$
pattern # 2: $ 9,999,999,999,999.00
pattern # 3: 9,999,999,999,999.00 $
Requirements
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0