# FarPoint.Win.Spread.Model.GeneralFormatter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_Model_GeneralFormatter" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter" class="text-break">GeneralFormatter Class
</h1>
  <div class="markdown level0 summary"><p>Represents the formatter object for parsing and formatting values for the general cell type.</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">GeneralFormatter</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Win.Spread.CellType.IFormatter.html">IFormatter</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ILabelFormatter2.html">ILabelFormatter2</a></div>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ILabelFormatter.html">ILabelFormatter</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.Model.html">FarPoint.Win.Spread.Model</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_Model_GeneralFormatter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(GeneralFormatter._a))]
public class GeneralFormatter : IFormatter, ISerializable, ILabelFormatter2, ILabelFormatter, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(GeneralFormatter._a))&gt;
Public Class GeneralFormatter
    Implements IFormatter, ISerializable, ILabelFormatter2, ILabelFormatter, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.-ctor.html#FarPoint_Win_Spread_Model_GeneralFormatter__ctor">GeneralFormatter()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new formatter with null FormatString and default NumberFormatInfo<br>
and DateTimeFormatInfo (copied from the current culture).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.-ctor.html#FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GeneralFormatter(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new formatter from serialization.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_String_System_Boolean_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor(System.String,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.-ctor.html#FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_String_System_Boolean_">GeneralFormatter(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new formatter with the specified format
and default formatting information (copied from the current culture).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_String_System_IFormatProvider_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor(System.String,System.IFormatProvider)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.-ctor.html#FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_String_System_IFormatProvider_">GeneralFormatter(string, IFormatProvider)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new formatter with the specified format
and formatting information (copied from the current culture).</p>
</td>
      </tr>
    </tbody>
  </table>
  <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="FarPoint_Win_Spread_Model_GeneralFormatter_DateTimeFormat" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.DateTimeFormat">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.DateTimeFormat.html#FarPoint_Win_Spread_Model_GeneralFormatter_DateTimeFormat">DateTimeFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format for displaying dates and times.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter_FormatString" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.FormatString">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.FormatString.html#FarPoint_Win_Spread_Model_GeneralFormatter_FormatString">FormatString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format string used to format the date value.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter_IsDateFormat" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.IsDateFormat">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.IsDateFormat.html#FarPoint_Win_Spread_Model_GeneralFormatter_IsDateFormat">IsDateFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the format string being used is a date-time format string.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter_NumberFormat" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.NumberFormat">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.NumberFormat.html#FarPoint_Win_Spread_Model_GeneralFormatter_NumberFormat">NumberFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the format for displaying currency values.</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="FarPoint_Win_Spread_Model_GeneralFormatter_Format_System_Object_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Format(System.Object)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.Format.html#FarPoint_Win_Spread_Model_GeneralFormatter_Format_System_Object_">Format(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Formats the object to a string.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.GetObjectData.html#FarPoint_Win_Spread_Model_GeneralFormatter_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the formatter to the SerializationInfo object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter_Parse_System_String_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Parse(System.String)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.Parse.html#FarPoint_Win_Spread_Model_GeneralFormatter_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Parses the string to an object and returns the result.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter_Parse_System_String_System_IFormatProvider__System_String__" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Parse(System.String,System.IFormatProvider@,System.String@)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.Parse.html#FarPoint_Win_Spread_Model_GeneralFormatter_Parse_System_String_System_IFormatProvider__System_String__">Parse(string, ref IFormatProvider, ref string)</a>
        </td>
        <td class="markdown level1 summary"><p>Parses the string to an object and returns the result.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_GeneralFormatter_SetFormatString_System_String_System_Boolean_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.SetFormatString(System.String,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Spread.Model.GeneralFormatter.SetFormatString.html#FarPoint_Win_Spread_Model_GeneralFormatter_SetFormatString_System_String_System_Boolean_">SetFormatString(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the format string used to format values.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
