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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_SideButtonCollection_CopyTo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SideButtonCollection.CopyTo*">CopyTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_SideButtonCollection_CopyTo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SideButtonCollection.CopyTo*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_SideButtonCollection_CopyTo_GrapeCity_Win_Spread_InputMan_CellType_SideButtonBase___System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.SideButtonCollection.CopyTo(GrapeCity.Win.Spread.InputMan.CellType.SideButtonBase[],System.Int32)">CopyTo(SideButtonBase[], int)</h4>
<div class="markdown level1 summary"><p>Copies the collection objects to a one-dimensional <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.array">Array</a> instance that begins at the specified index.</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(SideButtonBase[] array, int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CopyTo(array As SideButtonBase(), 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.SideButtonBase.html">SideButtonBase</a>[]</td>
      <td><span class="parametername">array</span></td>
      <td><p>The one-dimensional <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.array">Array</a> that is the destination of the values copied from the collection.</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 index of the array at which to begin inserting.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td><p>The array parameter is null.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentoutofrangeexception">ArgumentOutOfRangeException</a></td>
      <td><p>The index parameter is less than the target array's minimum index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>The destination array is multidimensional.-or- The number of elements in the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.SideButtonCollection.html">SideButtonCollection</a> is greater than
the available space between the index of the target array specified by the index parameter and the end of the target array.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
