# FarPoint.Web.Spread.CurrencyCellType.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_CurrencyCellType__ctor_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor*">CurrencyCellType Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_CurrencyCellType__ctor_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_CurrencyCellType__ctor" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor">CurrencyCellType()</h4>
<div class="markdown level1 summary"><p>Creates a new currency cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CurrencyCellType()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_CurrencyCellType__ctor_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_CurrencyCellType__ctor_System_String_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor(System.String)">CurrencyCellType(string)</h4>
<div class="markdown level1 summary"><p>Creates a new currency cell with the specified message to display.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CurrencyCellType(string errorMessage)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(errorMessage As String)</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">errorMessage</span></td>
      <td><p>Message (as a string) to display if the input value is not valid</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_CurrencyCellType__ctor_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_CurrencyCellType__ctor_System_Decimal_System_Decimal_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor(System.Decimal,System.Decimal)">CurrencyCellType(decimal, decimal)</h4>
<div class="markdown level1 summary"><p>Creates a new currency cell with the specified minimum and maximum values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CurrencyCellType(decimal min, decimal max)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(min As Decimal, max As Decimal)</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.decimal">decimal</a></td>
      <td><span class="parametername">min</span></td>
      <td><p>Minimum value of currency (as decimal)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a></td>
      <td><span class="parametername">max</span></td>
      <td><p>Maximum value of currency (as decimal)</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_CurrencyCellType__ctor_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_CurrencyCellType__ctor_System_Decimal_System_Decimal_System_String_" data-uid="FarPoint.Web.Spread.CurrencyCellType.#ctor(System.Decimal,System.Decimal,System.String)">CurrencyCellType(decimal, decimal, string)</h4>
<div class="markdown level1 summary"><p>Creates a new currency cell with the specified minimum and maximum values
and the specified error message.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CurrencyCellType(decimal min, decimal max, string errorMessage)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(min As Decimal, max As Decimal, errorMessage As String)</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.decimal">decimal</a></td>
      <td><span class="parametername">min</span></td>
      <td><p>Minimum value of currency (as decimal)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.decimal">decimal</a></td>
      <td><span class="parametername">max</span></td>
      <td><p>Maximum value of currency (as decimal)</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">errorMessage</span></td>
      <td><p>Message (as string) to display when input value is not valid</p>
</td>
    </tr>
  </tbody>
</table>
</div>
