# C1.Util.XLPath.Draw

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_XLPath_Draw_" data-uid="C1.Util.XLPath.Draw*">Draw Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_XLPath_Draw_" data-uid="C1.Util.XLPath.Draw*"></a>
<h4 id="C1_Util_XLPath_Draw_GrapeCity_Documents_Drawing_GcGraphics_GrapeCity_Documents_Drawing_Pen_" data-uid="C1.Util.XLPath.Draw(GrapeCity.Documents.Drawing.GcGraphics,GrapeCity.Documents.Drawing.Pen)">Draw(GcGraphics, Pen)</h4>
<div class="markdown level1 summary"><p>Draws a path defined by points and types.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public void Draw(GcGraphics graphics, Pen pen)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Sub Draw(graphics As GcGraphics, pen As Pen)</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">GcGraphics</span></td>
      <td><span class="parametername">graphics</span></td>
      <td><p>The graphics for drawing and filling.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Pen</span></td>
      <td><span class="parametername">pen</span></td>
      <td><p>The <span class="xref">GrapeCity.Documents.Drawing.Pen</span> used to stroke the specified path.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Util_XLPath_Draw_" data-uid="C1.Util.XLPath.Draw*"></a>
<h4 id="C1_Util_XLPath_Draw_C1_Util_IRendering_System_Boolean_" data-uid="C1.Util.XLPath.Draw(C1.Util.IRendering,System.Boolean)">Draw(IRendering, bool)</h4>
<div class="markdown level1 summary"><p>Draws ans fills a path defined by points and types.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Draw(IRendering rendering, bool close = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Draw(rendering As IRendering, Optional close As Boolean = False)</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">IRendering</span></td>
      <td><span class="parametername">rendering</span></td>
      <td><p>The <span class="xref">C1.Util.IRendering</span> interface (instead graphics).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">close</span></td>
      <td><p>Is need to draw the closed path.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
