Input for WinForms | ComponentOne
C1.Win.Input Namespace / FormatType Enumeration

In This Topic
    FormatType Enumeration
    In This Topic
    Specifies the format type of the string.
    Syntax
    'Declaration
     
    
    Public Enum FormatType 
       Inherits System.Enum
    public enum FormatType : System.Enum 
    Members
    MemberDescription
    CurrencyThe number is converted to a string that represents a currency amount.
    CustomFormatFormatting uses the string assigned to the CustomFormat property. Parsing uses NumberStyle, DateTimeStyle, and CustomFormat properties.
    DateAndTimeGMTFormats the date and time as Greenwich Mean Time (GMT).
    DateTimeSortableFormats the date and time as a sortable index.
    DefaultFormatConversion using TypeConverter.ConvertToString().
    FixedPointThe number is converted to a string of the form “-ddd.ddd…” where each 'd' indicates a digit (0-9).
    GeneralDateGeneral date/time pattern (short time).
    GeneralNumberThe number is converted to the most compact decimal form, using fixed point or scientific notation.
    GMTSortableFormats the date and time as a GMT sortable index.
    HexadecimalThe number is converted to a string of hexadecimal digits. This format is supported for integral types only.
    IntegerDisplays number as a string that contains the value of the number in Decimal (base 10) format. This format is supported for integral types only.
    LongDateDisplays a date according to specified CultureInfo's long date format.
    LongDateLongTimeDisplays the long date and long time according to specified CultureInfo's format.
    LongDateShortTimeDisplays the long date and short time according to specified CultureInfo's format.
    LongDateTimeGMTFormats the date and time with the long date and long time as GMT.
    LongTimeDisplays a time using your locale's long time format; includes hours, minutes, seconds.
    MediumDateDisplays a date using the medium date format ("dd-MMM-yy").
    MediumTimeDisplays time in 12-hour format using hours and minutes and the AM/PM designator ("hh:mm tt").
    MonthAndDayDisplays the month and the day of a date.
    OnOffConverts to Boolean and shows Off for false, On for true.
    PercentThe number is converted to a string that represents a percent as defined by the System.Globalization.NumberFormatInfo.PercentNegativePattern property or the System.Globalization.NumberFormatInfo.PercentPositivePattern property.
    RoundTripThe round-trip specifier guarantees that a numeric value converted to a string will be parsed back into the same numeric value. This format is supported by floating-point types only.
    ScientificThe number is converted to a string of the form "-d.ddd…E+ddd" or "-d.ddd…e+ddd", where each 'd' indicates a digit (0-9).
    ShortDateDisplays a date using specified CultureInfo's short date format.
    ShortDateLongTimeDisplays the short date and long time according to specified CultureInfo's format.
    ShortDateShortTimeDisplays the short date and short time according to specified CultureInfo's format.
    ShortTimeDisplays a time using the 24-hour format, for example, 17:45.
    StandardNumberThe number is converted to a string of the form "-d,ddd,ddd.ddd…", where each 'd' indicates a digit (0-9).
    TrueFalseConverts to Boolean and shows True or False.
    UseEventConversion performed by user code in the Formatting (or Parsing) event.
    YearAndMonthFormats the date as the year and month.
    YesNoConverts to Boolean and shows No for false, Yes for true.
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Win.Input.FormatType

    See Also