# GrapeCity.Spreadsheet.IO.OpenXml.ICellExporter.Export

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IO_OpenXml_ICellExporter_Export_" data-uid="GrapeCity.Spreadsheet.IO.OpenXml.ICellExporter.Export*">Export Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IO_OpenXml_ICellExporter_Export_" data-uid="GrapeCity.Spreadsheet.IO.OpenXml.ICellExporter.Export*"></a>
<h4 id="GrapeCity_Spreadsheet_IO_OpenXml_ICellExporter_Export_GrapeCity_Spreadsheet_IO_OpenXml_ExportContext_System_Int32_System_Int32_System_Object_GrapeCity_CalcEngine_Expression_System_Int32_GrapeCity_CalcEngine_IPrimitiveValue_" data-uid="GrapeCity.Spreadsheet.IO.OpenXml.ICellExporter.Export(GrapeCity.Spreadsheet.IO.OpenXml.ExportContext,System.Int32,System.Int32,System.Object,GrapeCity.CalcEngine.Expression,System.Int32,GrapeCity.CalcEngine.IPrimitiveValue)">Export(ExportContext, int, int, object, Expression, int, IPrimitiveValue)</h4>
<div class="markdown level1 summary"><p>Converts the specified value to the corresponding OpenXml data type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool Export(ExportContext context, int row, int column, object value, Expression expression, int cellStyleId, IPrimitiveValue result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Export(context As ExportContext, row As Integer, column As Integer, value As Object, expression As Expression, cellStyleId As Integer, result As IPrimitiveValue) As Boolean</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="GrapeCity.Spreadsheet.IO.OpenXml.ExportContext.html">ExportContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.IO.OpenXml.ExportContext.html">ExportContext</a> object indicates the export context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the row index of cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the column index of cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">value</span></td>
      <td><p>The value of cell.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Expression</span></td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression of cell.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">cellStyleId</span></td>
      <td><p>The ID of the cell style. Use Export(ExportContext, object, int, IPrimitiveValue) to get the cell style.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IPrimitiveValue.html">IPrimitiveValue</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>A <span class="xref">GrapeCity.CalcEngine.PrimitiveValue</span> value to store the converted data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the specified value can be exported to OpenXml format; otherwise, <code>false</code>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
