# C1.Document.FlexChart.IDrawAndHitTest.Draw

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_FlexChart_IDrawAndHitTest_Draw_" data-uid="C1.Document.FlexChart.IDrawAndHitTest.Draw*">Draw Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_FlexChart_IDrawAndHitTest_Draw_" data-uid="C1.Document.FlexChart.IDrawAndHitTest.Draw*"></a>
<h4 id="C1_Document_FlexChart_IDrawAndHitTest_Draw_C1_Document_Util_C1Graphics_System_Double_System_Double_" data-uid="C1.Document.FlexChart.IDrawAndHitTest.Draw(C1.Document.Util.C1Graphics,System.Double,System.Double)">Draw(C1Graphics, double, double)</h4>
<div class="markdown level1 summary"><p>Draws the chart content to the specified graphics surface using the provided dimensions.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Draw(C1Graphics graphics, double width, double height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Draw(graphics As C1Graphics, width As Double, height As Double)</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">C1Graphics</span></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>The graphics rendering context to draw into.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The target drawing width in device-independent units.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The target drawing height in device-independent units.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
