NumberNegativePattern

Namespace ›› System ›› MfNumberFormatInfo ›› Properties ››
Parent Previous Next

NumberNegativePattern

Gets or sets the format pattern for negative numeric values.

OutputVar := instance.NumberNegativePattern
instance.NumberNegativePattern := Value

Value

MfInteger instance or var containing integer.

Gets

Gets the format pattern for negative numeric values as an integer var.
The default for InvariantInfo is 1

Sets

Sets the format pattern for negative numeric values.

Throws

Throws MfArgumentOutOfRangeException if the property is being set to a value that is less than 0 or greater than 4.
Throws MfInvalidOperationException if the property is being set and the MfNumberFormatInfo is read-only.

Remarks

The NumberNegativePattern property defines the format of negative values formatted with the "N" standard numeric format string. This property has one of the values in the following table. The symbol "-" is the NegativeSign and n is a number.

Value

Associated pattern

0

(n)

1

-n

2

- n

3

n-

4

n -

The default value for the invariant culture returned by the InvariantInfo property is 1, which represents "-n", where n is a number.