# GrapeCity.SpreadBuilder.Workbook.-ctor

## Content

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



<h1 id="GrapeCity_SpreadBuilder_Workbook__ctor_" data-uid="GrapeCity.SpreadBuilder.Workbook.#ctor*">Workbook Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_SpreadBuilder_Workbook__ctor_" data-uid="GrapeCity.SpreadBuilder.Workbook.#ctor*"></a>
<h4 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})">Workbook(Func&lt;string, StringMeasurementParams, SizeF&gt;)</h4>
<div class="markdown level1 summary"><p>The default constructor for the Workbook class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Workbook(Func&lt;string, StringMeasurementParams, SizeF&gt; measureString = null)</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="https://learn.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, <a class="xref" href="GrapeCity.SpreadBuilder.StringMeasurementParams.html">StringMeasurementParams</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.sizef">SizeF</a>&gt;</td>
      <td><span class="parametername">measureString</span></td>
      <td><p>Function to measure string in case of auto-height row behavior.
Parameters: string, measurement parameters, result size.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
