# GrapeCity.Documents.Barcode.GcPdfBarcodeExtension.DrawBarcode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Barcode_GcPdfBarcodeExtension_DrawBarcode_" data-uid="GrapeCity.Documents.Barcode.GcPdfBarcodeExtension.DrawBarcode*">DrawBarcode Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Barcode_GcPdfBarcodeExtension_DrawBarcode_" data-uid="GrapeCity.Documents.Barcode.GcPdfBarcodeExtension.DrawBarcode*"></a>
<h4 id="GrapeCity_Documents_Barcode_GcPdfBarcodeExtension_DrawBarcode_GrapeCity_Documents_Drawing_GcGraphics_GrapeCity_Documents_Barcode_GcBarcode_System_Drawing_RectangleF_" data-uid="GrapeCity.Documents.Barcode.GcPdfBarcodeExtension.DrawBarcode(GrapeCity.Documents.Drawing.GcGraphics,GrapeCity.Documents.Barcode.GcBarcode,System.Drawing.RectangleF)">DrawBarcode(GcGraphics, GcBarcode, RectangleF)</h4>
<div class="markdown level1 summary"><p>Draws a <a class="xref" href="GrapeCity.Documents.Barcode.GcBarcode.html">GcBarcode</a> on the current <a class="xref" href="../DS.Documents.Imaging/GrapeCity.Documents.Drawing.GcGraphics.html">GcGraphics</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static void DrawBarcode(this GcGraphics g, GcBarcode barcode, RectangleF bounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Sub DrawBarcode(g As GcGraphics, barcode As GcBarcode, bounds As RectangleF)</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="../DS.Documents.Imaging/GrapeCity.Documents.Drawing.GcGraphics.html">GcGraphics</a></td>
      <td><span class="parametername">g</span></td>
      <td><p>The current graphics.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Barcode.GcBarcode.html">GcBarcode</a></td>
      <td><span class="parametername">barcode</span></td>
      <td><p>The barcode to draw.</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">bounds</span></td>
      <td><p>The bounds specifying where to draw the barcode.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
