# FarPoint.Win.Spread.Visualization.FunctionVisualizer.PaintCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Visualization_FunctionVisualizer_PaintCell_" data-uid="FarPoint.Win.Spread.Visualization.FunctionVisualizer.PaintCell*">PaintCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Visualization_FunctionVisualizer_PaintCell_" data-uid="FarPoint.Win.Spread.Visualization.FunctionVisualizer.PaintCell*"></a>
<h4 id="FarPoint_Win_Spread_Visualization_FunctionVisualizer_PaintCell_System_Drawing_Graphics_System_Drawing_Rectangle_System_Object_GrapeCity_Spreadsheet_StyleFormat__GrapeCity_Spreadsheet_IWorksheet_" data-uid="FarPoint.Win.Spread.Visualization.FunctionVisualizer.PaintCell(System.Drawing.Graphics,System.Drawing.Rectangle,System.Object,GrapeCity.Spreadsheet.StyleFormat@,GrapeCity.Spreadsheet.IWorksheet)">PaintCell(Graphics, Rectangle, object, ref StyleFormat, IWorksheet)</h4>
<div class="markdown level1 summary"><p>Paints the cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void PaintCell(Graphics graphics, Rectangle rect, object cellValue, ref StyleFormat styleFormat, IWorksheet worksheet)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub PaintCell(graphics As Graphics, rect As Rectangle, cellValue As Object, ByRef styleFormat As StyleFormat, worksheet As IWorksheet)</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.drawing.graphics">Graphics</a></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>Graphics device interface for painting the cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rect</span></td>
      <td><p>The cell boundary to paint.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">cellValue</span></td>
      <td><p>The cell value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a></td>
      <td><span class="parametername">styleFormat</span></td>
      <td><p>The cell style format.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>The painting worksheet.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Visualization_FunctionVisualizer_PaintCell_" data-uid="FarPoint.Win.Spread.Visualization.FunctionVisualizer.PaintCell*"></a>
<h4 id="FarPoint_Win_Spread_Visualization_FunctionVisualizer_PaintCell_FarPoint_Win_Spread_CellType_IPaintingContext_System_Drawing_Rectangle_System_Object_GrapeCity_Spreadsheet_StyleFormat__" data-uid="FarPoint.Win.Spread.Visualization.FunctionVisualizer.PaintCell(FarPoint.Win.Spread.CellType.IPaintingContext,System.Drawing.Rectangle,System.Object,GrapeCity.Spreadsheet.StyleFormat@)">PaintCell(IPaintingContext, Rectangle, object, ref StyleFormat)</h4>
<div class="markdown level1 summary"><p>Paints the cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected virtual void PaintCell(IPaintingContext context, Rectangle rect, object cellValue, ref StyleFormat styleFormat)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Overridable Sub PaintCell(context As IPaintingContext, rect As Rectangle, cellValue As Object, ByRef styleFormat As StyleFormat)</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="FarPoint.Win.Spread.CellType.IPaintingContext.html">IPaintingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The painting context that contains painting data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">rect</span></td>
      <td><p>The cell boundary to paint.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">cellValue</span></td>
      <td><p>The cell value.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.StyleFormat.html">StyleFormat</a></td>
      <td><span class="parametername">styleFormat</span></td>
      <td><p>The cell style format.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
