# C1.Win.Input.FormatType

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="C1_Win_Input_FormatType" data-uid="C1.Win.Input.FormatType" class="text-break">FormatType Enum
</h1>
  <div class="markdown level0 summary"><p>Specifies the format type of the string.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Input.html">C1.Win.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Input.10.dll</h6>
  <h5 id="C1_Win_Input_FormatType_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum FormatType</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum FormatType</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="C1_Win_Input_FormatType_Currency">Currency</td>
        <td><p>The number is converted to a string that represents a currency amount.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_CustomFormat">CustomFormat</td>
        <td><p>Formatting uses the string assigned to the CustomFormat property.
Parsing uses NumberStyle, DateTimeStyle, and CustomFormat properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_DateAndTimeGMT">DateAndTimeGMT</td>
        <td><p>Formats the date and time as Greenwich Mean Time (GMT).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_DateTimeSortable">DateTimeSortable</td>
        <td><p>Formats the date and time as a sortable index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_DefaultFormat">DefaultFormat</td>
        <td><p>Conversion using TypeConverter.ConvertToString().</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_FixedPoint">FixedPoint</td>
        <td><p>The number is converted to a string of the form “-ddd.ddd…” where each 'd' indicates a digit (0-9).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_GMTSortable">GMTSortable</td>
        <td><p>Formats the date and time as a GMT sortable index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_GeneralDate">GeneralDate</td>
        <td><p>General date/time pattern (short time).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_GeneralNumber">GeneralNumber</td>
        <td><p>The number is converted to the most compact decimal form, using fixed point or scientific notation.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_Hexadecimal">Hexadecimal</td>
        <td><p>The number is converted to a string of hexadecimal digits. This format is supported for integral types only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_Integer">Integer</td>
        <td><p>Displays number as a string that contains the value of the number in Decimal (base 10) format. This format is supported for integral types only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_LongDate">LongDate</td>
        <td><p>Displays a date according to specified CultureInfo's long date format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_LongDateLongTime">LongDateLongTime</td>
        <td><p>Displays the long date and long time according to specified CultureInfo's format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_LongDateShortTime">LongDateShortTime</td>
        <td><p>Displays the long date and short time according to specified CultureInfo's format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_LongDateTimeGMT">LongDateTimeGMT</td>
        <td><p>Formats the date and time with the long date and long time as GMT.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_LongTime">LongTime</td>
        <td><p>Displays a time using your locale's long time format; includes hours, minutes, seconds.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_MediumDate">MediumDate</td>
        <td><p>Displays a date using the medium date format (&quot;dd-MMM-yy&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_MediumTime">MediumTime</td>
        <td><p>Displays time in 12-hour format using hours and minutes and the AM/PM designator (&quot;hh:mm tt&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_MonthAndDay">MonthAndDay</td>
        <td><p>Displays the month and the day of a date.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_OnOff">OnOff</td>
        <td><p>Converts to Boolean and shows Off for false, On for true.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_Percent">Percent</td>
        <td><p>The number is converted to a string that represents a percent as defined by the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.numberformatinfo.percentnegativepattern">PercentNegativePattern</a> property
or the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.globalization.numberformatinfo.percentpositivepattern">PercentPositivePattern</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_RoundTrip">RoundTrip</td>
        <td><p>The 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.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_Scientific">Scientific</td>
        <td><p>The number is converted to a string of the form &quot;-d.ddd…E+ddd&quot; or &quot;-d.ddd…e+ddd&quot;, where each 'd' indicates a digit (0-9).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_ShortDate">ShortDate</td>
        <td><p>Displays a date using specified CultureInfo's short date format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_ShortDateLongTime">ShortDateLongTime</td>
        <td><p>Displays the short date and long time according to specified CultureInfo's format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_ShortDateShortTime">ShortDateShortTime</td>
        <td><p>Displays the short date and short time according to specified CultureInfo's format.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_ShortTime">ShortTime</td>
        <td><p>Displays a time using the 24-hour format, for example, 17:45.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_StandardNumber">StandardNumber</td>
        <td><p>The number is converted to a string of the form &quot;-d,ddd,ddd.ddd…&quot;, where each 'd' indicates a digit (0-9).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_TrueFalse">TrueFalse</td>
        <td><p>Converts to Boolean and shows True or False.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_UseEvent">UseEvent</td>
        <td><p>Conversion performed by user code in the Formatting (or Parsing) event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_YearAndMonth">YearAndMonth</td>
        <td><p>Formats the date as the year and month.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_FormatType_YesNo">YesNo</td>
        <td><p>Converts to Boolean and shows No for false, Yes for true.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
