通貨の負の値の形式パターンを取得または設定します。
Public Property CurrencyNegativePattern As Integer
[C#]
public int CurrencyNegativePattern {get; set;}
[C++]
public: __property int get_CurrencyNegativePattern();public: __property void set_CurrencyNegativePattern(int);
[JScript]
public function get CurrencyNegativePattern() : int;public function set CurrencyNegativePattern(int);
プロパティ値
通貨の負の値の形式パターン。 InvariantInfo の既定値は 0 で、"($n)" を表します。"$" は CurrencySymbol で、 n は数値です。
例外
| 例外の種類 | 条件 |
|---|---|
| ArgumentOutOfRangeException | プロパティが 0 より小さいか、15 より大きい値に設定されています。 |
| InvalidOperationException | プロパティが設定されていますが、 NumberFormatInfo が読み取り専用です。 |
解説
このプロパティは、次の表の値のいずれか 1 つをとります。記号 "$" は CurrencySymbol 、記号 "-" は NegativeSign 、 n は数値です。
| 値 | 関連付けられたパターン |
|---|---|
| 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 $) |
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard
参照
NumberFormatInfo クラス | NumberFormatInfo メンバ | System.Globalization 名前空間 | CurrencyDecimalDigits | CurrencyDecimalSeparator | CurrencyGroupSeparator | CurrencyGroupSizes | CurrencySymbol | CurrencyPositivePattern | NumberNegativePattern | PercentNegativePattern