# FarPoint.Web.Spread.ButtonCellType.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_ButtonCellType__ctor_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor*">ButtonCellType Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_ButtonCellType__ctor_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ButtonCellType__ctor" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor">ButtonCellType()</h4>
<div class="markdown level1 summary"><p>Creates a new button cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ButtonCellType()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_ButtonCellType__ctor_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ButtonCellType__ctor_System_String_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor(System.String)">ButtonCellType(string)</h4>
<div class="markdown level1 summary"><p>Creates a new button cell with the specified command.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ButtonCellType(string cmd)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(cmd 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">cmd</span></td>
      <td><p>String of command to perform when the user clicks the button</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_ButtonCellType__ctor_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ButtonCellType__ctor_System_String_System_String_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor(System.String,System.String)">ButtonCellType(string, string)</h4>
<div class="markdown level1 summary"><p>Creates a new button cell with the specified command and text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ButtonCellType(string cmd, string text)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(cmd As String, text 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">cmd</span></td>
      <td><p>String of command to perform when the user clicks the button</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>String with button text</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_ButtonCellType__ctor_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ButtonCellType__ctor_System_String_FarPoint_Web_Spread_ButtonType_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor(System.String,FarPoint.Web.Spread.ButtonType)">ButtonCellType(string, ButtonType)</h4>
<div class="markdown level1 summary"><p>Creates a new button cell with the specified command and button type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ButtonCellType(string cmd, ButtonType type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(cmd As String, type As ButtonType)</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">cmd</span></td>
      <td><p>String of command to perform when the user clicks the button</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ButtonType.html">ButtonType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Button type</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_ButtonCellType__ctor_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_ButtonCellType__ctor_System_String_FarPoint_Web_Spread_ButtonType_System_String_" data-uid="FarPoint.Web.Spread.ButtonCellType.#ctor(System.String,FarPoint.Web.Spread.ButtonType,System.String)">ButtonCellType(string, ButtonType, string)</h4>
<div class="markdown level1 summary"><p>Creates a new button cell with the specified command and button type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ButtonCellType(string cmd, ButtonType type, string urlOrText)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(cmd As String, type As ButtonType, urlOrText 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">cmd</span></td>
      <td><p>String of command to perform when the user clicks the button</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ButtonType.html">ButtonType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Button type</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">urlOrText</span></td>
      <td><p>Image URL if the button type is ButtonType.ImageButton; otherwise, the button text</p>
</td>
    </tr>
  </tbody>
</table>
</div>
