# C1.Win.Input.Formating.FormatInfo

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Input_Formating_FormatInfo" data-uid="C1.Win.Input.Formating.FormatInfo" class="text-break">FormatInfo Class
</h1>
  <div class="markdown level0 summary"><p>Settings for data formatting, converting data to string.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">FormatInfo</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Input.Formating.html">C1.Win.Input.Formating</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Input.10.dll</h6>
  <h5 id="C1_Win_Input_Formating_FormatInfo_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(GenericInheritConverter))]
public class FormatInfo</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(GenericInheritConverter))&gt;
Public Class FormatInfo</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_CustomFormat" data-uid="C1.Win.Input.Formating.FormatInfo.CustomFormat">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.CustomFormat.html#C1_Win_Input_Formating_FormatInfo_CustomFormat">CustomFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the custom format specifies used if FormatType = FormatType.CustomFormat.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_EmptyAsNull" data-uid="C1.Win.Input.Formating.FormatInfo.EmptyAsNull">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.EmptyAsNull.html#C1_Win_Input_Formating_FormatInfo_EmptyAsNull">EmptyAsNull</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether empty strings are interpreted as null values (<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.dbnull">DBNull</a>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_FormatType" data-uid="C1.Win.Input.Formating.FormatInfo.FormatType">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.FormatType.html#C1_Win_Input_Formating_FormatInfo_FormatType">FormatType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value determining the formatting method, including standard .NET format specifiers, custom and programmatic formatting.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_Inherit" data-uid="C1.Win.Input.Formating.FormatInfo.Inherit">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.Inherit.html#C1_Win_Input_Formating_FormatInfo_Inherit">Inherit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value manages inheritance of the FormatInfo properties from the host control properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_NullText" data-uid="C1.Win.Input.Formating.FormatInfo.NullText">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.NullText.html#C1_Win_Input_Formating_FormatInfo_NullText">NullText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string representing DbNull value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_TrimEnd" data-uid="C1.Win.Input.Formating.FormatInfo.TrimEnd">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.TrimEnd.html#C1_Win_Input_Formating_FormatInfo_TrimEnd">TrimEnd</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether trailing spaces are removed before parsing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_TrimStart" data-uid="C1.Win.Input.Formating.FormatInfo.TrimStart">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.TrimStart.html#C1_Win_Input_Formating_FormatInfo_TrimStart">TrimStart</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether leading spaces are removed before parsing.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_Format_System_Object_" data-uid="C1.Win.Input.Formating.FormatInfo.Format(System.Object)">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.Format.html#C1_Win_Input_Formating_FormatInfo_Format_System_Object_">Format(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Formats a value, converts it to a string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_Format_System_Object_C1_Win_Input_FormatType_System_Globalization_CultureInfo_" data-uid="C1.Win.Input.Formating.FormatInfo.Format(System.Object,C1.Win.Input.FormatType,System.Globalization.CultureInfo)">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.Format.html#C1_Win_Input_Formating_FormatInfo_Format_System_Object_C1_Win_Input_FormatType_System_Globalization_CultureInfo_">Format(object, FormatType, CultureInfo)</a>
        </td>
        <td class="markdown level1 summary"><p>Formats a value, converts it to a string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_OnFormatError_C1_Win_Input_Formating_FormatErrorEventArgs_" data-uid="C1.Win.Input.Formating.FormatInfo.OnFormatError(C1.Win.Input.Formating.FormatErrorEventArgs)">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.OnFormatError.html#C1_Win_Input_Formating_FormatInfo_OnFormatError_C1_Win_Input_Formating_FormatErrorEventArgs_">OnFormatError(FormatErrorEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Input.Formating.FormatInfo.FormatError.html">FormatError</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_OnFormatting_C1_Win_Input_Formating_FormatEventArgs_" data-uid="C1.Win.Input.Formating.FormatInfo.OnFormatting(C1.Win.Input.Formating.FormatEventArgs)">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.OnFormatting.html#C1_Win_Input_Formating_FormatInfo_OnFormatting_C1_Win_Input_Formating_FormatEventArgs_">OnFormatting(FormatEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Input.Formating.FormatInfo.Formatting.html">Formatting</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_Reset" data-uid="C1.Win.Input.Formating.FormatInfo.Reset">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.Reset.html#C1_Win_Input_Formating_FormatInfo_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets whole FormatInfo property of base control</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ResetCustomFormat" data-uid="C1.Win.Input.Formating.FormatInfo.ResetCustomFormat">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ResetCustomFormat.html#C1_Win_Input_Formating_FormatInfo_ResetCustomFormat">ResetCustomFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the CustomFormat property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ResetEmptyAsNull" data-uid="C1.Win.Input.Formating.FormatInfo.ResetEmptyAsNull">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ResetEmptyAsNull.html#C1_Win_Input_Formating_FormatInfo_ResetEmptyAsNull">ResetEmptyAsNull()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the EmptyAsNull property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ResetFormatType" data-uid="C1.Win.Input.Formating.FormatInfo.ResetFormatType">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ResetFormatType.html#C1_Win_Input_Formating_FormatInfo_ResetFormatType">ResetFormatType()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the FormatType property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ResetNullText" data-uid="C1.Win.Input.Formating.FormatInfo.ResetNullText">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ResetNullText.html#C1_Win_Input_Formating_FormatInfo_ResetNullText">ResetNullText()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the NullText property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ResetTrimEnd" data-uid="C1.Win.Input.Formating.FormatInfo.ResetTrimEnd">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ResetTrimEnd.html#C1_Win_Input_Formating_FormatInfo_ResetTrimEnd">ResetTrimEnd()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the TrimEnd property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ResetTrimStart" data-uid="C1.Win.Input.Formating.FormatInfo.ResetTrimStart">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ResetTrimStart.html#C1_Win_Input_Formating_FormatInfo_ResetTrimStart">ResetTrimStart()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the TrimStart property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ShouldSerializeCustomFormat" data-uid="C1.Win.Input.Formating.FormatInfo.ShouldSerializeCustomFormat">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ShouldSerializeCustomFormat.html#C1_Win_Input_Formating_FormatInfo_ShouldSerializeCustomFormat">ShouldSerializeCustomFormat()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the CustomFormat property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ShouldSerializeEmptyAsNull" data-uid="C1.Win.Input.Formating.FormatInfo.ShouldSerializeEmptyAsNull">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ShouldSerializeEmptyAsNull.html#C1_Win_Input_Formating_FormatInfo_ShouldSerializeEmptyAsNull">ShouldSerializeEmptyAsNull()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the EmptyAsNull property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ShouldSerializeFormatType" data-uid="C1.Win.Input.Formating.FormatInfo.ShouldSerializeFormatType">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ShouldSerializeFormatType.html#C1_Win_Input_Formating_FormatInfo_ShouldSerializeFormatType">ShouldSerializeFormatType()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the FormatType property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ShouldSerializeNullText" data-uid="C1.Win.Input.Formating.FormatInfo.ShouldSerializeNullText">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ShouldSerializeNullText.html#C1_Win_Input_Formating_FormatInfo_ShouldSerializeNullText">ShouldSerializeNullText()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the NullText property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ShouldSerializeTrimEnd" data-uid="C1.Win.Input.Formating.FormatInfo.ShouldSerializeTrimEnd">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ShouldSerializeTrimEnd.html#C1_Win_Input_Formating_FormatInfo_ShouldSerializeTrimEnd">ShouldSerializeTrimEnd()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the TrimEnd property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_ShouldSerializeTrimStart" data-uid="C1.Win.Input.Formating.FormatInfo.ShouldSerializeTrimStart">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.ShouldSerializeTrimStart.html#C1_Win_Input_Formating_FormatInfo_ShouldSerializeTrimStart">ShouldSerializeTrimStart()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the TrimStart property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_FormatError" data-uid="C1.Win.Input.Formating.FormatInfo.FormatError">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.FormatError.html">FormatError</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the control receives data that cannot be formatted according to the current format and edit mask settings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Input_Formating_FormatInfo_Formatting" data-uid="C1.Win.Input.Formating.FormatInfo.Formatting">
          <a class="xref" href="C1.Win.Input.Formating.FormatInfo.Formatting.html">Formatting</a>
        </td>
        <td class="markdown level1 summary"><p>Formatting the value programmatically.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
