NumberFormatInfo.NumberNegativePattern : NumberFormatInfo « Internationalization I18N « VB.Net






NumberFormatInfo.NumberNegativePattern

 

Imports System
Imports System.Globalization
Imports Microsoft.VisualBasic

Class SamplesNumberFormatInfo    

    Public Shared Sub Main()
        Dim myNfi As New NumberFormatInfo()

        Dim myInt As Int64 = - 1234

        Dim i As Integer
        For i = 0 To 4
            myNfi.NumberNegativePattern = i
            Console.WriteLine("Pattern {0}" + ControlChars.Tab + ":" _
               + ControlChars.Tab + "{1}", myNfi.NumberNegativePattern, _
               myInt.ToString("N", myNfi))
        Next i
    End Sub
End Class

   
  








Related examples in the same category

1.NumberFormatInfo Class defines how to format numbers
2.NumberFormatInfo.CurrencyDecimalDigits tells the number of decimal places to use in currency values.
3.NumberFormatInfo.CurrencyDecimalSeparator
4.NumberFormatInfo.CurrencyGroupSeparator
5.NumberFormatInfo.CurrencyGroupSizes
6.NumberFormatInfo.DigitSubstitution
7.NumberFormatInfo.InvariantInfo
8.NumberFormatInfo number format properties
9.NumberFormatInfo percent format properties
10.NumberFormatInfo.NativeDigits gets or sets native digits equivalent to the Western digits 0 through 9.
11.NumberFormatInfo.NumberDecimalDigits
12.NumberFormatInfo.NumberDecimalSeparator gets or sets decimal separator in numeric values.
13.NumberFormatInfo.NumberGroupSeparator
14.NumberFormatInfo.NumberGroupSizes
15.NumberFormatInfo.PercentDecimalDigits
16.NumberFormatInfo.PercentDecimalSeparator
17.NumberFormatInfo.PercentGroupSeparator
18.Displays the value with default formatting
19.Displays a negative value with the default number of decimal digits (2)
20.Displays the same value with four decimal digits
21.Displays the same value with a blank as the separator
22.Displays a value with the default separator (",")
23.Displays the same value with a blank as the separator
24.Displays a value with the default separator (".")
25.Displays with different groupings
26.Currency Symbol codes