# GrapeCity.Spreadsheet.Charts.ICharts.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Charts_ICharts_Add_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Charts_ICharts_Add_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_Charts_ICharts_Add" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add">Add()</h4>
<div class="markdown level1 summary"><p>Inserts a chart directly onto the grid.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Add()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Add()</code></pre>
</div>


<a id="GrapeCity_Spreadsheet_Charts_ICharts_Add_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_Charts_ICharts_Add_System_String_System_String_System_Int32_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add(System.String,System.String,System.Int32)">Add(string, string, int)</h4>
<div class="markdown level1 summary"><p>Inserts a chart directly onto the grid.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Add(string before = null, string after = null, int count = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Add(Optional before As String = Nothing, Optional after As String = Nothing, Optional count As Integer = 1)</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">before</span></td>
      <td><p>A string value that specifies the sheet before which the new sheet is added. You cannot specify <code class="paramref">before</code> if you specify <code class="paramref">after</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">after</span></td>
      <td><p>A string value that specifies the sheet after which the new sheet is added. You cannot specify <code class="paramref">after</code> if you specify <code class="paramref">before</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of sheets to be added.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Charts_ICharts_Add_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_Charts_ICharts_Add_GrapeCity_Spreadsheet_ISheet_GrapeCity_Spreadsheet_ISheet_System_Int32_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add(GrapeCity.Spreadsheet.ISheet,GrapeCity.Spreadsheet.ISheet,System.Int32)">Add(ISheet, ISheet, int)</h4>
<div class="markdown level1 summary"><p>Inserts a chart directly onto the grid.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Add(ISheet before = null, ISheet after = null, int count = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Add(Optional before As ISheet = Nothing, Optional after As ISheet = Nothing, Optional count As Integer = 1)</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.ISheet.html">ISheet</a></td>
      <td><span class="parametername">before</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.ISheet.html">ISheet</a> object that specifies the sheet before which the new sheet is added. You cannot specify <code class="paramref">before</code> if you specify <code class="paramref">after</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.ISheet.html">ISheet</a></td>
      <td><span class="parametername">after</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.ISheet.html">ISheet</a> object that specifies the sheet after which the new sheet is added. You cannot specify <code class="paramref">after</code> if you specify <code class="paramref">before</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of sheets to be added.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Charts_ICharts_Add_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add*"></a>
<h4 id="GrapeCity_Spreadsheet_Charts_ICharts_Add_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.Charts.ICharts.Add(System.Int32,System.Int32,System.Int32)">Add(int, int, int)</h4>
<div class="markdown level1 summary"><p>Inserts a chart directly onto the grid.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Add(int before = -1, int after = -1, int count = 1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Add(Optional before As Integer = -1, Optional after As Integer = -1, Optional count As Integer = 1)</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.int32">int</a></td>
      <td><span class="parametername">before</span></td>
      <td><p>Index of the sheet before which the new sheet is added. You cannot specify <code class="paramref">before</code> if you specify <code class="paramref">after</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">after</span></td>
      <td><p>Index of the sheet after which the new sheet is added. You cannot specify <code class="paramref">after</code> if you specify <code class="paramref">before</code>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of sheets to be added.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
