# GrapeCity.Spreadsheet.IO.OpenXml.ExportContext.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IO_OpenXml_ExportContext__ctor_" data-uid="GrapeCity.Spreadsheet.IO.OpenXml.ExportContext.#ctor*">ExportContext Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IO_OpenXml_ExportContext__ctor_" data-uid="GrapeCity.Spreadsheet.IO.OpenXml.ExportContext.#ctor*"></a>
<h4 id="GrapeCity_Spreadsheet_IO_OpenXml_ExportContext__ctor_GrapeCity_Spreadsheet_IO_OpenXml_UnitConverter_System_Func_System_String__" data-uid="GrapeCity.Spreadsheet.IO.OpenXml.ExportContext.#ctor(GrapeCity.Spreadsheet.IO.OpenXml.UnitConverter,System.Func{System.String})">ExportContext(UnitConverter, Func&lt;string&gt;)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Spreadsheet.IO.OpenXml.ExportContext.html">ExportContext</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ExportContext(UnitConverter unitConverter = null, Func&lt;string&gt; passwordRequest = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(Optional unitConverter As UnitConverter = Nothing, Optional passwordRequest As Func(Of String) = Nothing)</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><span class="xref">UnitConverter</span></td>
      <td><span class="parametername">unitConverter</span></td>
      <td><p>The unit converter which converts measurement values.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
      <td><span class="parametername">passwordRequest</span></td>
      <td><p>The handler which provides password for password-protected workbook.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
