asp.net.ph

NumberFormatInfo.CurrencyNegativePattern Property

System.Globalization Namespace   NumberFormatInfo Class


Sets or retrieves the format pattern for negative currency values.

[ VB ]
public Property CurrencyNegativePattern As Integer

[ C# ]
public int CurrencyNegativePattern {get; set;}

[ C++ ]
public: __property int get_CurrencyNegativePattern ( );
public: __property void set_CurrencyNegativePattern ( int );

[ JScript ]
function get CurrencyNegativePattern ( ) : int;
public function set CurrencyNegativePattern ( int );

Property Value

The format pattern for negative currency values. The default for InvariantInfo is 0, which represents " ( $n ) ", where "$" is the CurrencySymbol and n is a number.

Exceptions


Exception Type Condition
ArgumentOutOfRangeException The property is being set to a value that is less than 0 or greater than 15.
InvalidOperationException The property is being set and the NumberFormatInfo is read-only.

Remarks

This property can have one of the values in the following table. The symbol "$" is the CurrencySymbol, the symbol "-" is the NegativeSign, and n is a number.

Value Associated Pattern
0 ( $n )
1 -$n
2 $-n
3 $n-
4 ( n$ )
5 -n$
6 n-$
7 n$-
8 -n $
9 -$ n
10 n $-
11 $ n-
12 $ -n
13 n- $
14 ( $ n )
15 ( n $ )

Example

The below shows the CurrencyNegativePattern used for each of the available cultures.

 Show me 

See Also

NumberFormatInfo Members   CurrencyDecimalDigits   CurrencyDecimalSeparator   CurrencyGroupSeparator   CurrencyGroupSizes   CurrencySymbol   CurrencyPositivePattern   NumberNegativePattern   PercentNegativePattern Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph