# FarPoint.Web.Spread.CheckBoxCellType.PaintCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_CheckBoxCellType_PaintCell_" data-uid="FarPoint.Web.Spread.CheckBoxCellType.PaintCell*">PaintCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_CheckBoxCellType_PaintCell_" data-uid="FarPoint.Web.Spread.CheckBoxCellType.PaintCell*"></a>
<h4 id="FarPoint_Web_Spread_CheckBoxCellType_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.CheckBoxCellType.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 value, 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, value 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>String that contains the 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>Appearance object with appearance settings</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>Inset object with margin settings</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</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.BaseCellType.PaintCell.html#FarPoint_Web_Spread_BaseCellType_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">BaseCellType.PaintCell(string, TableCell, Appearance, Inset, object, bool)</a></div>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="FarPoint.Web.Spread.Renderer.IRenderer.PaintCell.html#FarPoint_Web_Spread_Renderer_IRenderer_PaintCell_System_String_System_Web_UI_WebControls_TableCell_FarPoint_Web_Spread_Appearance_FarPoint_Web_Spread_Inset_System_Object_System_Boolean_">IRenderer.PaintCell(string, TableCell, Appearance, Inset, object, bool)</a></div>


<a id="FarPoint_Web_Spread_CheckBoxCellType_PaintCell_" data-uid="FarPoint.Web.Spread.CheckBoxCellType.PaintCell*"></a>
<h4 id="FarPoint_Web_Spread_CheckBoxCellType_PaintCell_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_" data-uid="FarPoint.Web.Spread.CheckBoxCellType.PaintCell(FarPoint.PDF.PdfGraphics,System.Drawing.RectangleF,FarPoint.Web.Spread.Appearance,System.Object,System.Boolean,System.Boolean,System.Single)">PaintCell(PdfGraphics, RectangleF, Appearance, object, bool, bool, float)</h4>
<div class="markdown level1 summary"><p>Gets a control and prints the cell to PDF based on the specified appearance and selection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override void PaintCell(PdfGraphics g, RectangleF r, Appearance appearance, object value, bool isSelected, bool isLocked, float zoomFactor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Sub PaintCell(g As PdfGraphics, r As RectangleF, appearance As Appearance, value As Object, isSelected As Boolean, isLocked As Boolean, zoomFactor As Single)</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><span class="xref">PdfGraphics</span></td>
      <td><span class="parametername">g</span></td>
      <td><p>PDF graphics device</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">RectangleF</span></td>
      <td><span class="parametername">r</span></td>
      <td><p>Rectangle boundary of the cell to print</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.Appearance.html">Appearance</a></td>
      <td><span class="parametername">appearance</span></td>
      <td><p>Appearance settings</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>Value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isSelected</span></td>
      <td><p>Whether the cell is active</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isLocked</span></td>
      <td><p>Whether the cell is marked as locked</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">zoomFactor</span></td>
      <td><p>Numeric value for zoom factor for scaling the display</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="FarPoint.Web.Spread.BaseCellType.PaintCell.html#FarPoint_Web_Spread_BaseCellType_PaintCell_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Web_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_">BaseCellType.PaintCell(PdfGraphics, RectangleF, Appearance, object, bool, bool, float)</a></div>
</div>
