# FarPoint.Win.Spread.Model.GeneralFormatter.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor*">GeneralFormatter Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor">GeneralFormatter()</h4>
<div class="markdown level1 summary"><p>Creates a new formatter with null FormatString and default NumberFormatInfo<br>
and DateTimeFormatInfo (copied from the current culture).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GeneralFormatter()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_String_System_Boolean_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor(System.String,System.Boolean)">GeneralFormatter(string, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new formatter with the specified format
and default formatting information (copied from the current culture).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GeneralFormatter(string formatString, bool isDateFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(formatString As String, isDateFormat As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">formatString</span></td>
      <td><p>String with format information</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isDateFormat</span></td>
      <td><p>Whether to consider the number as a date and format it as such</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_System_String_System_IFormatProvider_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor(System.String,System.IFormatProvider)">GeneralFormatter(string, IFormatProvider)</h4>
<div class="markdown level1 summary"><p>Creates a new formatter with the specified format
and formatting information (copied from the current culture).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public GeneralFormatter(string formatString, IFormatProvider formatInfo)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(formatString As String, formatInfo As IFormatProvider)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">formatString</span></td>
      <td><p>String with format information</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></td>
      <td><span class="parametername">formatInfo</span></td>
      <td><p>IFormatProvider interface with number and date-time format information</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Model_GeneralFormatter__ctor_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.#ctor*"></a>
<h4 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)">GeneralFormatter(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a new formatter from serialization.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected GeneralFormatter(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>SerializationInfo</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>StreamingContext</p>
</td>
    </tr>
  </tbody>
</table>
</div>
