# GrapeCity.Spreadsheet.ITableStyle.Duplicate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_ITableStyle_Duplicate_" data-uid="GrapeCity.Spreadsheet.ITableStyle.Duplicate*">Duplicate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_ITableStyle_Duplicate_" data-uid="GrapeCity.Spreadsheet.ITableStyle.Duplicate*"></a>
<h4 id="GrapeCity_Spreadsheet_ITableStyle_Duplicate_System_String_" data-uid="GrapeCity.Spreadsheet.ITableStyle.Duplicate(System.String)">Duplicate(string)</h4>
<div class="markdown level1 summary"><p>Duplicates this table style with the specified name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">ITableStyle Duplicate(string name = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Duplicate(Optional name As String = Nothing) As ITableStyle</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.string">string</a></td>
      <td><span class="parametername">name</span></td>
      <td><p>The name of new duplicated table style.</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="GrapeCity.Spreadsheet.ITableStyle.html">ITableStyle</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.ITableStyle.html">ITableStyle</a> value represents the duplicated table style.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_ITableStyle_Duplicate_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If no name is specified, the <a class="xref" href="GrapeCity.Spreadsheet.ITableStyle.Duplicate.html#GrapeCity_Spreadsheet_ITableStyle_Duplicate_System_String_">Duplicate(string)</a> method generates a new name automatically.</p>
</div>
</div>
