asp.net.ph

NumberFormatInfo.PercentPositivePattern Property

System.Globalization Namespace   NumberFormatInfo Class


Sets or retrieves the format pattern for positive percent values.

[ VB ]
public Property PercentPositivePattern As Integer

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

[ C++ ]
public: __property int get_PercentPositivePattern ( );
public: __property void set_PercentPositivePattern ( int );

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

Property Value

The format pattern for positive percent values. The default for InvariantInfo is 0, which represents "n %", where "%" is the PercentSymbol 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 2.
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 PercentSymbol and n is a number.

Value Associated Pattern
0 n %
1 n%
2 %n

See Also

NumberFormatInfo Members   PercentDecimalDigits   PercentDecimalSeparator   PercentGroupSeparator   PercentGroupSizes   PercentSymbol   PercentNegativePattern   CurrencyPositivePattern 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