NegativeSign Property

NumberFormatInfo.NegativeSign Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the string that indicates that a number is negative.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

public string NegativeSign { get; set; }

Property Value

Type: System.String
The string that indicates that a number is negative. The default for InvariantInfo is "-".

ExceptionCondition
ArgumentNullException

The property is being set to null.

InvalidOperationException

The property is being set and the NumberFormatInfo object is read-only.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft