Retrieves and assigns the number of decimal places used in the representation of percent values.
[Visual Basic] Public Property PercentDecimalDigits As Integer [C#] public int PercentDecimalDigits {get; set;} [C++] public: __property int get_PercentDecimalDigits(); public: __property void set_PercentDecimalDigits(int); [JScript] public function get PercentDecimalDigits() : int; public function set PercentDecimalDigits(int);
Read/write. The number of decimal places used to represent percentages. The default value is 0.
Exception Type | Condition |
---|---|
ArgumentException | value to assign is < 0 or > 99. |
InvalidOperationException | This NumberFormatInfo object is read-only and an attempt is made to assign a value. |
Assignment is not allowed if this NumberFormatInfo object is read-only.
NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace