# FarPoint.Win.Spread.IPdfPrintableRule.PaintCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_IPdfPrintableRule_PaintCell_" data-uid="FarPoint.Win.Spread.IPdfPrintableRule.PaintCell*">PaintCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_IPdfPrintableRule_PaintCell_" data-uid="FarPoint.Win.Spread.IPdfPrintableRule.PaintCell*"></a>
<h4 id="FarPoint_Win_Spread_IPdfPrintableRule_PaintCell_FarPoint_PDF_PdfGraphics_System_Drawing_RectangleF_FarPoint_Win_Spread_Appearance_System_Object_System_Boolean_System_Boolean_System_Single_" data-uid="FarPoint.Win.Spread.IPdfPrintableRule.PaintCell(FarPoint.PDF.PdfGraphics,System.Drawing.RectangleF,FarPoint.Win.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>Paints the cell when not in edit mode to PDF graphics with the specified appearance settings if the conditional format rule is satisfied.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">PrePaintTextResult 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">Function PaintCell(g As PdfGraphics, r As RectangleF, appearance As Appearance, value As Object, isSelected As Boolean, isLocked As Boolean, zoomFactor As Single) As PrePaintTextResult</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 for painting the cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">r</span></td>
      <td><p>Location and size of a rectangular region</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Appearance.html">Appearance</a></td>
      <td><span class="parametername">appearance</span></td>
      <td><p>Appearance settings of the cell</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>Object that contains the name of the renderer control of the cell</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 selected</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 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 scaling the display of the cell</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="FarPoint.Win.Spread.PrePaintTextResult.html">PrePaintTextResult</a></td>
      <td><p>A <a class="xref" href="FarPoint.Win.Spread.PrePaintTextResult.html">PrePaintTextResult</a> object that indicates the result of painting</p>
</td>
    </tr>
  </tbody>
</table>
</div>
