# C1.Web.Mvc.Fluent.SeriesListBaseFactory-5.Add

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add*">Add Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add__2_System_Func__1___0__System_Func___0___1__" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add``2(System.Func{`1,``0},System.Func{``0,``1})">Add&lt;TControl, TBuilder&gt;(Func&lt;TOwner, TControl&gt;, Func&lt;TControl, TBuilder&gt;)</h4>
<div class="markdown level1 summary"><p>Add a series.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected TBuilder Add&lt;TControl, TBuilder&gt;(Func&lt;TOwner, TControl&gt; createControl, Func&lt;TControl, TBuilder&gt; createBuilder) where TControl : ChartSeriesBase&lt;T&gt; where TBuilder : ChartSeriesBaseBuilder&lt;T, TControl, TBuilder&gt;</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function Add(Of TControl As ChartSeriesBase(Of T), TBuilder As ChartSeriesBaseBuilder(Of T, TControl, TBuilder))(createControl As Func(Of TOwner, TControl), createBuilder As Func(Of TControl, TBuilder)) As TBuilder</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.func-2">Func</a>&lt;TOwner, TControl&gt;</td>
      <td><span class="parametername">createControl</span></td>
      <td><p>The function to create a series for the specified owner.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TControl, TBuilder&gt;</td>
      <td><span class="parametername">createBuilder</span></td>
      <td><p>The builder for the series.</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><span class="xref">TBuilder</span></td>
      <td><p>The series builder.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">TControl</span></td>
      <td><p>Specifies the series type.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TBuilder</span></td>
      <td><p>The series builder type.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add">Add()</h4>
<div class="markdown level1 summary"><p>Add a default Series to the series list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TSeriesBuilder Add()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add() As TSeriesBuilder</code></pre>
</div>
<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><span class="xref">TSeriesBuilder</span></td>
      <td><p>The series builder</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add_System_String_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add(System.String)">Add(string)</h4>
<div class="markdown level1 summary"><p>Add a default Series to the series list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TSeriesBuilder Add(string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(name As String) As TSeriesBuilder</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 series</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><span class="xref">TSeriesBuilder</span></td>
      <td><p>The series builder</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add__4_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add(`4)">Add(TChartType)</h4>
<div class="markdown level1 summary"><p>Add a default Series to the series list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TSeriesBuilder Add(TChartType type)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(type As TChartType) As TSeriesBuilder</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">TChartType</span></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of series</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><span class="xref">TSeriesBuilder</span></td>
      <td><p>The series builder</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add*"></a>
<h4 id="C1_Web_Mvc_Fluent_SeriesListBaseFactory_5_Add__4_System_String_" data-uid="C1.Web.Mvc.Fluent.SeriesListBaseFactory`5.Add(`4,System.String)">Add(TChartType, string)</h4>
<div class="markdown level1 summary"><p>Add a default Series to the series list.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public TSeriesBuilder Add(TChartType type, string name)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Add(type As TChartType, name As String) As TSeriesBuilder</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">TChartType</span></td>
      <td><span class="parametername">type</span></td>
      <td><p>The type of series</p>
</td>
    </tr>
    <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 series</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><span class="xref">TSeriesBuilder</span></td>
      <td><p>The series builder</p>
</td>
    </tr>
  </tbody>
</table>
</div>
