Export (0) Print
Expand All

NumberFormatInfo.NegativeSign Property

Gets or sets the string that denotes that the associated number is negative.

[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);

Property Value

The string that denotes that the associated number is negative. The default for InvariantInfo is "-".

Exceptions

Exception Type Condition
ArgumentNullException The property is being set to a null reference (Nothing in Visual Basic).
InvalidOperationException The property is being set and the NumberFormatInfo is read-only.

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 | PositiveSign

Show:
© 2014 Microsoft