# C1.Win.BarCode.C1BarCode

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_BarCode_C1BarCode" data-uid="C1.Win.BarCode.C1BarCode" class="text-break">C1BarCode Class
</h1>
  <div class="markdown level0 summary"><p>Winforms control that encodes text value into barcode image.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><span class="xref">C1BarCode</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.BarCode.html">C1.Win.BarCode</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Barcode.4.8.dll</h6>
  <h5 id="C1_Win_BarCode_C1BarCode_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1BarCode), &quot;C1BarCode.VisualStudio.11.0.png&quot;)]
public class C1BarCode : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1BarCode), &quot;C1BarCode.VisualStudio.11.0.png&quot;)&gt;
Public Class C1BarCode
    Inherits Control
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode__ctor" data-uid="C1.Win.BarCode.C1BarCode.#ctor">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.-ctor.html#C1_Win_BarCode_C1BarCode__ctor">C1BarCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Win.BarCode.C1BarCode.html">C1BarCode</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_AdditionalNumber" data-uid="C1.Win.BarCode.C1BarCode.AdditionalNumber">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.AdditionalNumber.html#C1_Win_BarCode_C1BarCode_AdditionalNumber">AdditionalNumber</a>
        </td>
        <td class="markdown level1 summary"><p>Additional number for supplemental barcodes</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_AutoSize" data-uid="C1.Win.BarCode.C1BarCode.AutoSize">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.AutoSize.html#C1_Win_BarCode_C1BarCode_AutoSize">AutoSize</a>
        </td>
        <td class="markdown level1 summary"><p>When set to True, the barcode automatically stretches to fit the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_BarDirection" data-uid="C1.Win.BarCode.C1BarCode.BarDirection">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.BarDirection.html#C1_Win_BarCode_C1BarCode_BarDirection">BarDirection</a>
        </td>
        <td class="markdown level1 summary"><p>Direction of the barcode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_BarHeight" data-uid="C1.Win.BarCode.C1BarCode.BarHeight">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.BarHeight.html#C1_Win_BarCode_C1BarCode_BarHeight">BarHeight</a>
        </td>
        <td class="markdown level1 summary"><p>The height of the bars in screen pixels.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_CaptionAlignment" data-uid="C1.Win.BarCode.C1BarCode.CaptionAlignment">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.CaptionAlignment.html#C1_Win_BarCode_C1BarCode_CaptionAlignment">CaptionAlignment</a>
        </td>
        <td class="markdown level1 summary"><p>Barcode caption alignment relative to the barcode symbol</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_CaptionGrouping" data-uid="C1.Win.BarCode.C1BarCode.CaptionGrouping">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.CaptionGrouping.html#C1_Win_BarCode_C1BarCode_CaptionGrouping">CaptionGrouping</a>
        </td>
        <td class="markdown level1 summary"><p>Draw separated caption for certain barcodes (EAN 8/13, UPC-A/E).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_CaptionPosition" data-uid="C1.Win.BarCode.C1BarCode.CaptionPosition">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.CaptionPosition.html#C1_Win_BarCode_C1BarCode_CaptionPosition">CaptionPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Barcode caption position relative to the barcode symbol</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_CheckSumEnabled" data-uid="C1.Win.BarCode.C1BarCode.CheckSumEnabled">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.CheckSumEnabled.html#C1_Win_BarCode_C1BarCode_CheckSumEnabled">CheckSumEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether a checksum of the barcode will be computed and included in the barcode when applicable.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_Code25intlvOptions" data-uid="C1.Win.BarCode.C1BarCode.Code25intlvOptions">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.Code25intlvOptions.html#C1_Win_BarCode_C1BarCode_Code25intlvOptions">Code25intlvOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Code25Intlv options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_Code49Options" data-uid="C1.Win.BarCode.C1BarCode.Code49Options">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.Code49Options.html#C1_Win_BarCode_C1BarCode_Code49Options">Code49Options</a>
        </td>
        <td class="markdown level1 summary"><p>Code49 options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_CodeType" data-uid="C1.Win.BarCode.C1BarCode.CodeType">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.CodeType.html#C1_Win_BarCode_C1BarCode_CodeType">CodeType</a>
        </td>
        <td class="markdown level1 summary"><p>The type of encoding to use when generating the barcode image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_DataMatrixOptions" data-uid="C1.Win.BarCode.C1BarCode.DataMatrixOptions">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.DataMatrixOptions.html#C1_Win_BarCode_C1BarCode_DataMatrixOptions">DataMatrixOptions</a>
        </td>
        <td class="markdown level1 summary"><p>DataMatrix options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_Ean128Fnc1Options" data-uid="C1.Win.BarCode.C1BarCode.Ean128Fnc1Options">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.Ean128Fnc1Options.html#C1_Win_BarCode_C1BarCode_Ean128Fnc1Options">Ean128Fnc1Options</a>
        </td>
        <td class="markdown level1 summary"><p>EAN128FNC1 options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_GS1CompositeOptions" data-uid="C1.Win.BarCode.C1BarCode.GS1CompositeOptions">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.GS1CompositeOptions.html#C1_Win_BarCode_C1BarCode_GS1CompositeOptions">GS1CompositeOptions</a>
        </td>
        <td class="markdown level1 summary"><p>GS1Composite options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_Image" data-uid="C1.Win.BarCode.C1BarCode.Image">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.Image.html#C1_Win_BarCode_C1BarCode_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>Returns bitmap image of control</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_MicroPDF417Options" data-uid="C1.Win.BarCode.C1BarCode.MicroPDF417Options">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.MicroPDF417Options.html#C1_Win_BarCode_C1BarCode_MicroPDF417Options">MicroPDF417Options</a>
        </td>
        <td class="markdown level1 summary"><p>MicroPDF417 options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_MicroQRCodeOptions" data-uid="C1.Win.BarCode.C1BarCode.MicroQRCodeOptions">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.MicroQRCodeOptions.html#C1_Win_BarCode_C1BarCode_MicroQRCodeOptions">MicroQRCodeOptions</a>
        </td>
        <td class="markdown level1 summary"><p>MicroQRCode options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_ModuleSize" data-uid="C1.Win.BarCode.C1BarCode.ModuleSize">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.ModuleSize.html#C1_Win_BarCode_C1BarCode_ModuleSize">ModuleSize</a>
        </td>
        <td class="markdown level1 summary"><p>Width of the narrow bar in screen pixels. The default value is one screen pixel wide (1/96&quot;).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_PDF417Options" data-uid="C1.Win.BarCode.C1BarCode.PDF417Options">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.PDF417Options.html#C1_Win_BarCode_C1BarCode_PDF417Options">PDF417Options</a>
        </td>
        <td class="markdown level1 summary"><p>PDF417 options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_QRCodeOptions" data-uid="C1.Win.BarCode.C1BarCode.QRCodeOptions">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.QRCodeOptions.html#C1_Win_BarCode_C1BarCode_QRCodeOptions">QRCodeOptions</a>
        </td>
        <td class="markdown level1 summary"><p>QRCode options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_QuietZone" data-uid="C1.Win.BarCode.C1BarCode.QuietZone">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.QuietZone.html#C1_Win_BarCode_C1BarCode_QuietZone">QuietZone</a>
        </td>
        <td class="markdown level1 summary"><p>A quiet zone is an area of blank space on either side of a barcode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_RssExpandedStackedOptions" data-uid="C1.Win.BarCode.C1BarCode.RssExpandedStackedOptions">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.RssExpandedStackedOptions.html#C1_Win_BarCode_C1BarCode_RssExpandedStackedOptions">RssExpandedStackedOptions</a>
        </td>
        <td class="markdown level1 summary"><p>RSSExpandedStacked options.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_Text" data-uid="C1.Win.BarCode.C1BarCode.Text">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.Text.html#C1_Win_BarCode_C1BarCode_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value that is encoded as a barcode image.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_TextFixedLength" data-uid="C1.Win.BarCode.C1BarCode.TextFixedLength">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.TextFixedLength.html#C1_Win_BarCode_C1BarCode_TextFixedLength">TextFixedLength</a>
        </td>
        <td class="markdown level1 summary"><p>Fixed number of digits of values of barcode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_WholeSize" data-uid="C1.Win.BarCode.C1BarCode.WholeSize">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.WholeSize.html#C1_Win_BarCode_C1BarCode_WholeSize">WholeSize</a>
        </td>
        <td class="markdown level1 summary"><p>Size of overall barcode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_WideToNarrowRatio" data-uid="C1.Win.BarCode.C1BarCode.WideToNarrowRatio">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.WideToNarrowRatio.html#C1_Win_BarCode_C1BarCode_WideToNarrowRatio">WideToNarrowRatio</a>
        </td>
        <td class="markdown level1 summary"><p>Ratio between wide and narrow bars.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_Dispose_System_Boolean_" data-uid="C1.Win.BarCode.C1BarCode.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.Dispose.html#C1_Win_BarCode_C1BarCode_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_OnAutoSizeChanged_System_EventArgs_" data-uid="C1.Win.BarCode.C1BarCode.OnAutoSizeChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.OnAutoSizeChanged.html#C1_Win_BarCode_C1BarCode_OnAutoSizeChanged_System_EventArgs_">OnAutoSizeChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_OnEncodingError_C1_Win_BarCode_EncodingErrorEventArgs_" data-uid="C1.Win.BarCode.C1BarCode.OnEncodingError(C1.Win.BarCode.EncodingErrorEventArgs)">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.OnEncodingError.html#C1_Win_BarCode_C1BarCode_OnEncodingError_C1_Win_BarCode_EncodingErrorEventArgs_">OnEncodingError(EncodingErrorEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the EncodingError event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_OnPaint_System_Windows_Forms_PaintEventArgs_" data-uid="C1.Win.BarCode.C1BarCode.OnPaint(System.Windows.Forms.PaintEventArgs)">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.OnPaint.html#C1_Win_BarCode_C1BarCode_OnPaint_System_Windows_Forms_PaintEventArgs_">OnPaint(PaintEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws barcode image</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_BarCode_C1BarCode_EncodingError" data-uid="C1.Win.BarCode.C1BarCode.EncodingError">
          <a class="xref" href="C1.Win.BarCode.C1BarCode.EncodingError.html">EncodingError</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when text entered into the C1BarCode cannot be encoded into barcode image.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
