# GrapeCity.Documents.Excel.WorkbookOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Excel_WorkbookOptions" data-uid="GrapeCity.Documents.Excel.WorkbookOptions" class="text-break">WorkbookOptions Class
</h1>
  <div class="markdown level0 summary"><p>Options class for creating the workbook.</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"><span class="xref">WorkbookOptions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Excel.html">GrapeCity.Documents.Excel</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Excel.dll</h6>
  <h5 id="GrapeCity_Documents_Excel_WorkbookOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class WorkbookOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class WorkbookOptions</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="GrapeCity_Documents_Excel_WorkbookOptions__ctor" data-uid="GrapeCity.Documents.Excel.WorkbookOptions.#ctor">
          <a class="xref" href="GrapeCity.Documents.Excel.WorkbookOptions.-ctor.html#GrapeCity_Documents_Excel_WorkbookOptions__ctor">WorkbookOptions()</a>
        </td>
        <td class="markdown level1 summary"></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="GrapeCity_Documents_Excel_WorkbookOptions_PixelBasedColumnWidth" data-uid="GrapeCity.Documents.Excel.WorkbookOptions.PixelBasedColumnWidth">
          <a class="xref" href="GrapeCity.Documents.Excel.WorkbookOptions.PixelBasedColumnWidth.html#GrapeCity_Documents_Excel_WorkbookOptions_PixelBasedColumnWidth">PixelBasedColumnWidth</a>
        </td>
        <td class="markdown level1 summary"><p>By default, the column width uses character count in workbook. <br>
Therefore, this option is introduced to allow users to decide whether to use pixels as the column width unit in workbook, <br>
in order to achieve the API behaviors (e.g. auto-fit column) and results (e.g. PDF and image rendering) to be closer to SpreadJS.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
