# GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Drawing_ISeriesCollection_Add_" data-uid="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Drawing_ISeriesCollection_Add_" data-uid="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_ISeriesCollection_Add_GrapeCity_Documents_Excel_IRange_" data-uid="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add(GrapeCity.Documents.Excel.IRange)">Add(IRange)</h4>
<div class="markdown level1 summary"><p>Adds one or more new series to the <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.html">ISeriesCollection</a> collection.
Spread will determine where the values are by the size and orientation of the selected range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Add(IRange source)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Add(source As IRange)</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.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The new data, a Range object.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Drawing_ISeriesCollection_Add_" data-uid="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_ISeriesCollection_Add_GrapeCity_Documents_Excel_IRange_GrapeCity_Documents_Excel_Drawing_RowCol_" data-uid="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add(GrapeCity.Documents.Excel.IRange,GrapeCity.Documents.Excel.Drawing.RowCol)">Add(IRange, RowCol)</h4>
<div class="markdown level1 summary"><p>Adds one or more new series to the <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.html">ISeriesCollection</a> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Add(IRange source, RowCol rowCol)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Add(source As IRange, rowCol As RowCol)</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.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The new data, a Range object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Drawing.RowCol.html">RowCol</a></td>
      <td><span class="parametername">rowCol</span></td>
      <td><p>Specifies whether the new values are in the rows or columns of the given range source. Can be one of
the following <a class="xref" href="GrapeCity.Documents.Excel.Drawing.RowCol.html">RowCol</a> constants: Rows or Columns.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_Drawing_ISeriesCollection_Add_" data-uid="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_ISeriesCollection_Add_GrapeCity_Documents_Excel_IRange_GrapeCity_Documents_Excel_Drawing_RowCol_System_Boolean_System_Boolean_" data-uid="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.Add(GrapeCity.Documents.Excel.IRange,GrapeCity.Documents.Excel.Drawing.RowCol,System.Boolean,System.Boolean)">Add(IRange, RowCol, bool, bool)</h4>
<div class="markdown level1 summary"><p>Adds one or more new series to the <a class="xref" href="GrapeCity.Documents.Excel.Drawing.ISeriesCollection.html">ISeriesCollection</a> collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void Add(IRange source, RowCol rowCol, bool seriesLabels, bool categoryLabels)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub Add(source As IRange, rowCol As RowCol, seriesLabels As Boolean, categoryLabels 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.Documents.Excel.IRange.html">IRange</a></td>
      <td><span class="parametername">source</span></td>
      <td><p>The new data, either as a Range object or an array of data points.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Drawing.RowCol.html">RowCol</a></td>
      <td><span class="parametername">rowCol</span></td>
      <td><p>Specifies whether the new values are in the rows or columns of the specified range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">seriesLabels</span></td>
      <td><p>True if the first row or column contains the name of the data series. False if the first row or column
contains the first data point of the series.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">categoryLabels</span></td>
      <td><p>True if the first row or column contains the name of the category labels. False if the first row or
column contains the first data point of the series.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
