# C1.Excel.C1XLBook.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Excel_C1XLBook__ctor_" data-uid="C1.Excel.C1XLBook.#ctor*">C1XLBook Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Excel_C1XLBook__ctor_" data-uid="C1.Excel.C1XLBook.#ctor*"></a>
<h4 id="C1_Excel_C1XLBook__ctor" data-uid="C1.Excel.C1XLBook.#ctor">C1XLBook()</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Excel.C1XLBook.html">C1XLBook</a> class. The
new workbook contains a single empty <a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> called &quot;Sheet1&quot;.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1XLBook()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Excel_C1XLBook__ctor_" data-uid="C1.Excel.C1XLBook.#ctor*"></a>
<h4 id="C1_Excel_C1XLBook__ctor_C1_Excel_CompatibilityMode_" data-uid="C1.Excel.C1XLBook.#ctor(C1.Excel.CompatibilityMode)">C1XLBook(CompatibilityMode)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.Excel.C1XLBook.html">C1XLBook</a> class. The
new workbook contains a single empty <a class="xref" href="C1.Excel.XLSheet.html">XLSheet</a> called &quot;Sheet1&quot;.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1XLBook(CompatibilityMode mode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(mode As CompatibilityMode)</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="C1.Excel.CompatibilityMode.html">CompatibilityMode</a></td>
      <td><span class="parametername">mode</span></td>
      <td><p>The <a class="xref" href="C1.Excel.C1XLBook.CompatibilityMode.html#C1_Excel_C1XLBook_CompatibilityMode">CompatibilityMode</a> value, by default Open XNL format.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
