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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_CopyTo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.CopyTo*">CopyTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_CopyTo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.CopyTo*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_HolidayCollection_CopyTo_GrapeCity_Win_Spread_InputMan_CellType_IHoliday___System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.CopyTo(GrapeCity.Win.Spread.InputMan.CellType.IHoliday[],System.Int32)">CopyTo(IHoliday[], int)</h4>
<div class="markdown level1 summary"><p>Copies the entire <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.HolidayCollection.html">HolidayCollection</a> to a
compatible one-dimensional array of type <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.IHoliday.html">IHoliday</a>,
starting at the specified zero-based index of the target array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void CopyTo(IHoliday[] holidays, int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CopyTo(holidays As IHoliday(), index As Integer)</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.Win.Spread.InputMan.CellType.IHoliday.html">IHoliday</a>[]</td>
      <td><span class="parametername">holidays</span></td>
      <td><p>An array of type <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.IHoliday.html">IHoliday</a> serving as the
destination for the copy action.</p>
</td>
    </tr>
    <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 to start placing the copied
collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
