# GrapeCity.Spreadsheet.ICellRenderer.Draw

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_ICellRenderer_Draw_" data-uid="GrapeCity.Spreadsheet.ICellRenderer.Draw*">Draw Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_ICellRenderer_Draw_" data-uid="GrapeCity.Spreadsheet.ICellRenderer.Draw*"></a>
<h4 id="GrapeCity_Spreadsheet_ICellRenderer_Draw_GrapeCity_Spreadsheet_Printing_PrintingContext_GrapeCity_Spreadsheet_CfExecutedResult__System_Object_GrapeCity_Drawing_Rectangle_" data-uid="GrapeCity.Spreadsheet.ICellRenderer.Draw(GrapeCity.Spreadsheet.Printing.PrintingContext,GrapeCity.Spreadsheet.CfExecutedResult@,System.Object,GrapeCity.Drawing.Rectangle)">Draw(PrintingContext, ref CfExecutedResult, object, Rectangle)</h4>
<div class="markdown level1 summary"><p>Draws the cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool Draw(PrintingContext context, ref CfExecutedResult result, object value, Rectangle rect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Draw(context As PrintingContext, ByRef result As CfExecutedResult, value As Object, rect As Rectangle) As Boolean</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="GrapeCity.Spreadsheet.Printing.PrintingContext.html">PrintingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>The printing context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.CfExecutedResult.html">CfExecutedResult</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>The matched conditional formatting result.</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>The cell value.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Rectangle</span></td>
      <td><span class="parametername">rect</span></td>
      <td><p>The client rectangle of 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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the cell is drawn; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
