# GrapeCity.SpreadBuilder.Workbook

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_SpreadBuilder_Workbook" data-uid="GrapeCity.SpreadBuilder.Workbook" class="text-break">Workbook Class
</h1>
  <div class="markdown level0 summary"><p>Represents a spreadsheet workbook containing spreadsheets.
This object represents information that is relevant to all the spreadsheets in the workbook (e.g. author, BIFF/file version, etc...).</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">Workbook</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.SpreadBuilder.html">GrapeCity.SpreadBuilder</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.SpreadBuilder.dll</h6>
  <h5 id="GrapeCity_SpreadBuilder_Workbook_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class Workbook</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_SpreadBuilder_Workbook__ctor_System_Func_System_String_GrapeCity_SpreadBuilder_StringMeasurementParams_System_Drawing_SizeF__" data-uid="GrapeCity.SpreadBuilder.Workbook.#ctor(System.Func{System.String,GrapeCity.SpreadBuilder.StringMeasurementParams,System.Drawing.SizeF})">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.-ctor.html#GrapeCity_SpreadBuilder_Workbook__ctor_System_Func_System_String_GrapeCity_SpreadBuilder_StringMeasurementParams_System_Drawing_SizeF__">Workbook(Func&lt;string, StringMeasurementParams, SizeF&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>The default constructor for the Workbook class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_DefaultFontName" data-uid="GrapeCity.SpreadBuilder.Workbook.DefaultFontName">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.DefaultFontName.html">DefaultFontName</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the name of the default font.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_DefaultFontSizeInPoints" data-uid="GrapeCity.SpreadBuilder.Workbook.DefaultFontSizeInPoints">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.DefaultFontSizeInPoints.html">DefaultFontSizeInPoints</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the size of the default font in points.</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="GrapeCity_SpreadBuilder_Workbook_FileFormat" data-uid="GrapeCity.SpreadBuilder.Workbook.FileFormat">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.FileFormat.html#GrapeCity_SpreadBuilder_Workbook_FileFormat">FileFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the file format in which one the spreadsheet will be saved.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_OpenXmlStandard" data-uid="GrapeCity.SpreadBuilder.Workbook.OpenXmlStandard">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.OpenXmlStandard.html#GrapeCity_SpreadBuilder_Workbook_OpenXmlStandard">OpenXmlStandard</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the level of Open XML document conformance when exporting to the Xlsx file format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_PixelsPerChar" data-uid="GrapeCity.SpreadBuilder.Workbook.PixelsPerChar">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.PixelsPerChar.html#GrapeCity_SpreadBuilder_Workbook_PixelsPerChar">PixelsPerChar</a>
        </td>
        <td class="markdown level1 summary"><p>The average width of &quot;0123456789&quot; ten characters.
Recommended value is 7.4. Can be set to 7 for legacy sheets.
For internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_ProtectWorkBookStructure" data-uid="GrapeCity.SpreadBuilder.Workbook.ProtectWorkBookStructure">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.ProtectWorkBookStructure.html#GrapeCity_SpreadBuilder_Workbook_ProtectWorkBookStructure">ProtectWorkBookStructure</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the protection status for a sheet or workbook.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_ProtectWorkbookPassword" data-uid="GrapeCity.SpreadBuilder.Workbook.ProtectWorkbookPassword">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.ProtectWorkbookPassword.html#GrapeCity_SpreadBuilder_Workbook_ProtectWorkbookPassword">ProtectWorkbookPassword</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the password to protect the items in the workbook.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_ProtectWorkbookWindows" data-uid="GrapeCity.SpreadBuilder.Workbook.ProtectWorkbookWindows">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.ProtectWorkbookWindows.html#GrapeCity_SpreadBuilder_Workbook_ProtectWorkbookWindows">ProtectWorkbookWindows</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an option from the Protect Workbook dialog box.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_Security" data-uid="GrapeCity.SpreadBuilder.Workbook.Security">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.Security.html#GrapeCity_SpreadBuilder_Workbook_Security">Security</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="GrapeCity.SpreadBuilder.DDSecurity.html">DDSecurity</a> object for initializing document security.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_SheetName" data-uid="GrapeCity.SpreadBuilder.Workbook.SheetName">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.SheetName.html#GrapeCity_SpreadBuilder_Workbook_SheetName">SheetName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating the name of sheet. <b>Sheet</b> is default.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_Sheets" data-uid="GrapeCity.SpreadBuilder.Workbook.Sheets">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.Sheets.html#GrapeCity_SpreadBuilder_Workbook_Sheets">Sheets</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of sheets as a <a class="xref" href="GrapeCity.SpreadBuilder.DDSheets.html">DDSheets</a> collection object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_UseCompression" data-uid="GrapeCity.SpreadBuilder.Workbook.UseCompression">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.UseCompression.html#GrapeCity_SpreadBuilder_Workbook_UseCompression">UseCompression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value indicating whether compression is used when exporting to the Xlsx file format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_UseDefaultPalette" data-uid="GrapeCity.SpreadBuilder.Workbook.UseDefaultPalette">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.UseDefaultPalette.html#GrapeCity_SpreadBuilder_Workbook_UseDefaultPalette">UseDefaultPalette</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the document is exported with the default Excel palette.</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="GrapeCity_SpreadBuilder_Workbook_Clear" data-uid="GrapeCity.SpreadBuilder.Workbook.Clear">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.Clear.html#GrapeCity_SpreadBuilder_Workbook_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all sheets, creates a new instance of all member class variables, and
initializes all member data variables to their default values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_Save_System_IO_Stream_" data-uid="GrapeCity.SpreadBuilder.Workbook.Save(System.IO.Stream)">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.Save.html#GrapeCity_SpreadBuilder_Workbook_Save_System_IO_Stream_">Save(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the current spreadsheet workbook to the specified Stream.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_SpreadBuilder_Workbook_Save_System_String_" data-uid="GrapeCity.SpreadBuilder.Workbook.Save(System.String)">
          <a class="xref" href="GrapeCity.SpreadBuilder.Workbook.Save.html#GrapeCity_SpreadBuilder_Workbook_Save_System_String_">Save(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the current spreadsheet data to the specified stream.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
