# GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.Insert

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_Insert_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.Insert*">Insert Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_Insert_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.Insert*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_Insert_System_Int32_GrapeCity_Win_Spread_InputMan_CellType_IHoliday_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.Insert(System.Int32,GrapeCity.Win.Spread.InputMan.CellType.IHoliday)">Insert(int, IHoliday)</h4>
<div class="markdown level1 summary"><p>Inserts a holiday object in the collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Insert(int index, IHoliday holiday)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Insert(index As Integer, holiday As IHoliday)</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">index</span></td>
      <td><p>The zero-based index at which <b>holiday</b> is inserted.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.IHoliday.html">IHoliday</a></td>
      <td><span class="parametername">holiday</span></td>
      <td><p>The <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> to insert - with the IHoliday interface
implemented.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
