# FarPoint.Web.Spread.PercentCellType.PaintCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_PercentCellType_PaintCell_" data-uid="FarPoint.Web.Spread.PercentCellType.PaintCell*">PaintCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_PercentCellType_PaintCell_" data-uid="FarPoint.Web.Spread.PercentCellType.PaintCell*"></a>
<h4 id="FarPoint_Web_Spread_PercentCellType_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.PercentCellType.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)</h4>
<div class="markdown level1 summary"><p>Gets a control and renders it in the cell based on the specified appearance, margin, and value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override Control PaintCell(string id, TableCell parent, Appearance style, Inset margin, object val, bool upperLevel)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function PaintCell(id As String, parent As TableCell, style As Appearance, margin As Inset, val As Object, upperLevel As Boolean) As Control</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">id</span></td>
      <td><p>Unique identifier of the control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ui.webcontrols.tablecell">TableCell</a></td>
      <td><span class="parametername">parent</span></td>
      <td><p>Parent cell (TableCell object) for the control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Appearance.html">Appearance</a></td>
      <td><span class="parametername">style</span></td>
      <td><p>Style settings (Appearance object) for the control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Inset.html">Inset</a></td>
      <td><span class="parametername">margin</span></td>
      <td><p>Margin settings (Inset object) for the control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">val</span></td>
      <td><p>Value (as object) to put in the control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">upperLevel</span></td>
      <td><p>Whether the control can render in an up-level browser</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ui.control">Control</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="FarPoint.Web.Spread.GeneralCellType.PaintCell.html#FarPoint_Web_Spread_GeneralCellType_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">GeneralCellType.PaintCell(string, TableCell, Appearance, Inset, object, bool)</a></div>
</div>
