# FarPoint.Web.Spread.Renderer.ButtonRenderer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_Renderer_ButtonRenderer" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer" class="text-break">ButtonRenderer Class
</h1>
  <div class="markdown level0 summary"><p>Represents a renderer control for button cells.</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"><a class="xref" href="FarPoint.Web.Spread.Renderer.BaseRenderer.html">BaseRenderer</a></div>
    <div class="level2"><a class="xref" href="FarPoint.Web.Spread.Renderer.DefaultRenderer.html">DefaultRenderer</a></div>
    <div class="level3"><span class="xref">ButtonRenderer</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Web.Spread.IEnhancedRenderer.html">IEnhancedRenderer</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer2.html">IRenderer2</a></div>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer.html">IRenderer</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Spread.Renderer.html">FarPoint.Web.Spread.Renderer</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Spread.dll</h6>
  <h5 id="FarPoint_Web_Spread_Renderer_ButtonRenderer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ButtonRenderer : DefaultRenderer, IEnhancedRenderer, IRenderer2, IRenderer</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ButtonRenderer
    Inherits DefaultRenderer
    Implements IEnhancedRenderer, IRenderer2, IRenderer</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_Web_Spread_Renderer_ButtonRenderer__ctor" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.#ctor">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.-ctor.html#FarPoint_Web_Spread_Renderer_ButtonRenderer__ctor">ButtonRenderer()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new button cell renderer control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer__ctor_System_String_" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.#ctor(System.String)">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.-ctor.html#FarPoint_Web_Spread_Renderer_ButtonRenderer__ctor_System_String_">ButtonRenderer(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a button renderer control with the specified action.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer__ctor_System_String_System_String_" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.#ctor(System.String,System.String)">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.-ctor.html#FarPoint_Web_Spread_Renderer_ButtonRenderer__ctor_System_String_System_String_">ButtonRenderer(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a button renderer control with the specified action and text.</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_Web_Spread_Renderer_ButtonRenderer_AccessKey" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.AccessKey">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.AccessKey.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_AccessKey">AccessKey</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the access key that allows you to quickly navigate
to the Web control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_AllowWrap" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.AllowWrap">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.AllowWrap.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_AllowWrap">AllowWrap</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the cell allows text to wrap to multiple lines.
Wrapping only occurs on word breaks.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_BackColor" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.BackColor">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.BackColor.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_BackColor">BackColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the background color of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_ButtonType" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.ButtonType">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.ButtonType.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_ButtonType">ButtonType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of command button.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_CommandName" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.CommandName">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.CommandName.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_CommandName">CommandName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the command to perform.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_ForeColor" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.ForeColor">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.ForeColor.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the foreground color (typically the color of the text) of the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_ImageUrl" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.ImageUrl">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.ImageUrl.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_ImageUrl">ImageUrl</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the path and file name of the picture to display
in the button cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_OnClientClick" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.OnClientClick">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.OnClientClick.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_OnClientClick">OnClientClick</a>
        </td>
        <td class="markdown level1 summary"><p>Handles client-side click.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_ShowEllipsis" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.ShowEllipsis">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.ShowEllipsis.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_ShowEllipsis">ShowEllipsis</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to render ellipsis (...) to indicate text overflow in the cell.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Renderer_ButtonRenderer_Text" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.Text">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.Text.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text to display in the button cell.</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_Web_Spread_Renderer_ButtonRenderer_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_" data-uid="FarPoint.Web.Spread.Renderer.ButtonRenderer.PaintCell(System.String,System.Web.UI.WebControls.TableCell,FarPoint.Web.Spread.Appearance,FarPoint.Web.Spread.Inset,System.Object,System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.Renderer.ButtonRenderer.PaintCell.html#FarPoint_Web_Spread_Renderer_ButtonRenderer_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">PaintCell(string, TableCell, Appearance, Inset, object, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the renderer control and renders it in the cell.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
