Retrieves and assigns the String used to indicate negative values.
[Visual Basic] Public Property NegativeSign As String [C#] public string NegativeSign {get; set;} [C++] public: __property String* get_NegativeSign(); public: __property void set_NegativeSign(String*); [JScript] public function get NegativeSign() : String; public function set NegativeSign(String);
Read/write. The String used to indicate negative values. The default value is '-'.
Exception Type | Condition |
---|---|
ArgumentException | value to assign is null. |
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