Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Description

Excerpt

Sets or returns the number format string used for formatting of numbers and dates.

Signature
C#
C#
 public System.String NumberFormat{ get; set; }
Signature
vb.net
vb.net
Public Property NumberFormat() As String
Example
Code Block
csharp
csharp
titleC#

          //--- Get NumberFormat
          string numFormat = styl.NumberFormat;

          //--- Set NumberFormat
          styl.NumberFormat = "#.##";

          //--- Set NumberFormat
          styl.NumberFormat = "mm/dd/yyyy hh:mm:ss AM/PM";
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Get NumberFormat
          Dim numFormat As String = styl.NumberFormat

          '--- Set NumberFormat
          styl.NumberFormat = "#.##"

          '--- Set NumberFormat
          styl.NumberFormat = "mm/dd/yyyy hh:mm:ss AM/PM"