# C1.Report.BarCodeField

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Report_BarCodeField" data-uid="C1.Report.BarCodeField" class="text-break">BarCodeField Class
</h1>
  <div class="markdown level0 summary"><p>Represents barcode in the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a>.</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="C1.Report.ReportObject.html">ReportObject</a></div>
    <div class="level2"><a class="xref" href="C1.Report.VisualReportObject.html">VisualReportObject</a></div>
    <div class="level3"><a class="xref" href="C1.Report.FieldBase.html">FieldBase</a></div>
    <div class="level4"><span class="xref">BarCodeField</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Report.IScriptContextProvider.html">IScriptContextProvider</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><span class="xref">INotify</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Report.html">C1.Report</a></h6>
  <h6><strong>Assembly</strong>: C1.Report.dll</h6>
  <h5 id="C1_Report_BarCodeField_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BarCodeField : FieldBase, IScriptContextProvider, ICloneable, INotify</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BarCodeField
    Inherits FieldBase
    Implements IScriptContextProvider, ICloneable, INotify</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_Report_BarCodeField__ctor" data-uid="C1.Report.BarCodeField.#ctor">
          <a class="xref" href="C1.Report.BarCodeField.-ctor.html#C1_Report_BarCodeField__ctor">BarCodeField()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Report.BarCodeField.html">BarCodeField</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_Report_BarCodeField_Align" data-uid="C1.Report.BarCodeField.Align">
          <a class="xref" href="C1.Report.BarCodeField.Align.html#C1_Report_BarCodeField_Align">Align</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value determining how the barcode image is aligned within the field area.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_BarCode" data-uid="C1.Report.BarCodeField.BarCode">
          <a class="xref" href="C1.Report.BarCodeField.BarCode.html#C1_Report_BarCodeField_BarCode">BarCode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of barcode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_BarcodeOptions" data-uid="C1.Report.BarCodeField.BarcodeOptions">
          <a class="xref" href="C1.Report.BarCodeField.BarcodeOptions.html#C1_Report_BarCodeField_BarcodeOptions">BarcodeOptions</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.BarCodeField.BarcodeOptions.html#C1_Report_BarCodeField_BarcodeOptions">BarcodeOptions</a> object defining additional options of barcode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_Font" data-uid="C1.Report.BarCodeField.Font">
          <a class="xref" href="C1.Report.BarCodeField.Font.html#C1_Report_BarCodeField_Font">Font</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the field's font.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_ForeColor" data-uid="C1.Report.BarCodeField.ForeColor">
          <a class="xref" href="C1.Report.BarCodeField.ForeColor.html#C1_Report_BarCodeField_ForeColor">ForeColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the field's foreground color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_ParentReport" data-uid="C1.Report.BarCodeField.ParentReport">
          <a class="xref" href="C1.Report.BarCodeField.ParentReport.html#C1_Report_BarCodeField_ParentReport">ParentReport</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Report.FlexReport.html">FlexReport</a> containing this field.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_Text" data-uid="C1.Report.BarCodeField.Text">
          <a class="xref" href="C1.Report.BarCodeField.Text.html#C1_Report_BarCodeField_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="C1.Report.ScriptStringValue.html">ScriptStringValue</a> yielding the text encoded by the barcode.</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_Report_BarCodeField_AfterRender" data-uid="C1.Report.BarCodeField.AfterRender">
          <a class="xref" href="C1.Report.BarCodeField.AfterRender.html#C1_Report_BarCodeField_AfterRender">AfterRender()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when report rendering finished.
Can be used to finalize object after rendering, release all resources using during rendering.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_AssignFrom_C1_Report_ReportObject_System_Boolean_" data-uid="C1.Report.BarCodeField.AssignFrom(C1.Report.ReportObject,System.Boolean)">
          <a class="xref" href="C1.Report.BarCodeField.AssignFrom.html#C1_Report_BarCodeField_AssignFrom_C1_Report_ReportObject_System_Boolean_">AssignFrom(ReportObject, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies properties from another object into this object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_BeforeRender" data-uid="C1.Report.BarCodeField.BeforeRender">
          <a class="xref" href="C1.Report.BarCodeField.BeforeRender.html#C1_Report_BarCodeField_BeforeRender">BeforeRender()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when report rendering starts.
Can be used to initialize object before rendering.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_GetContentAutoHeight_System_Double_" data-uid="C1.Report.BarCodeField.GetContentAutoHeight(System.Double)">
          <a class="xref" href="C1.Report.BarCodeField.GetContentAutoHeight.html#C1_Report_BarCodeField_GetContentAutoHeight_System_Double_">GetContentAutoHeight(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the height of object on basis of its content,
this method is called when field can grow or shrink vertically.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_GetContentAutoSize_System_Double__System_Double__" data-uid="C1.Report.BarCodeField.GetContentAutoSize(System.Double@,System.Double@)">
          <a class="xref" href="C1.Report.BarCodeField.GetContentAutoSize.html#C1_Report_BarCodeField_GetContentAutoSize_System_Double__System_Double__">GetContentAutoSize(out double, out double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate sizes of object on basis of its content,
this method is called when field can grow or shrink vertically and horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_GetContentAutoWidth_System_Double_" data-uid="C1.Report.BarCodeField.GetContentAutoWidth(System.Double)">
          <a class="xref" href="C1.Report.BarCodeField.GetContentAutoWidth.html#C1_Report_BarCodeField_GetContentAutoWidth_System_Double_">GetContentAutoWidth(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Override this method to calculate the width of object on basis of its content,
this method is called when field can grow or shrink horizontally.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_GetPropsTable" data-uid="C1.Report.BarCodeField.GetPropsTable">
          <a class="xref" href="C1.Report.BarCodeField.GetPropsTable.html#C1_Report_BarCodeField_GetPropsTable">GetPropsTable()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_Import_C1_Document_Serialization_XmlNodeWrapperBase_" data-uid="C1.Report.BarCodeField.Import(C1.Document.Serialization.XmlNodeWrapperBase)">
          <a class="xref" href="C1.Report.BarCodeField.Import.html#C1_Report_BarCodeField_Import_C1_Document_Serialization_XmlNodeWrapperBase_">Import(XmlNodeWrapperBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Imports node from legacy xml report definition;</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_" data-uid="C1.Report.BarCodeField.InternalBuildBrick(C1.Report.Rendering.SubSectionBrick)">
          <a class="xref" href="C1.Report.BarCodeField.InternalBuildBrick.html#C1_Report_BarCodeField_InternalBuildBrick_C1_Report_Rendering_SubSectionBrick_">InternalBuildBrick(SubSectionBrick)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates <span class="xref">C1.Report.Rendering.BarCodeBrick</span> descendant which passed to the C1FlexReport rendering engine to put on the pages.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_" data-uid="C1.Report.BarCodeField.InternalRefreshBrick(C1.Report.Rendering.FieldBrickBase)">
          <a class="xref" href="C1.Report.BarCodeField.InternalRefreshBrick.html#C1_Report_BarCodeField_InternalRefreshBrick_C1_Report_Rendering_FieldBrickBase_">InternalRefreshBrick(FieldBrickBase)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Report_BarCodeField_ResetState" data-uid="C1.Report.BarCodeField.ResetState">
          <a class="xref" href="C1.Report.BarCodeField.ResetState.html#C1_Report_BarCodeField_ResetState">ResetState()</a>
        </td>
        <td class="markdown level1 summary"><p>Called when C1FlexReport starts calculation of the section containing this FieldBase.
Resets internal state of the field.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
