Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NumberFormatInfo.CurrencyPositivePattern Property

Gets or sets the format pattern for positive currency values.

[Visual Basic]
Public Property CurrencyPositivePattern As Integer
[C#]
public int CurrencyPositivePattern {get; set;}
[C++]
public: __property int get_CurrencyPositivePattern();
public: __property void set_CurrencyPositivePattern(int);
[JScript]
public function get CurrencyPositivePattern() : int;
public function set CurrencyPositivePattern(int);

Property Value

The format pattern for positive 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 3.
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 and n is a number.

Value Associated Pattern
0 $n
1 n$
2 $ n
3 n $

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace | CurrencyDecimalDigits | CurrencyDecimalSeparator | CurrencyGroupSeparator | CurrencyGroupSizes | CurrencySymbol | CurrencyNegativePattern | PercentPositivePattern

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.