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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_ButtonTextCollection_CopyTo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ButtonTextCollection.CopyTo*">CopyTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_ButtonTextCollection_CopyTo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ButtonTextCollection.CopyTo*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_ButtonTextCollection_CopyTo_System_String___" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ButtonTextCollection.CopyTo(System.String[])">CopyTo(string[])</h4>
<div class="markdown level1 summary"><p>Copies the items of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.ButtonTextCollection.html">ButtonTextCollection</a> to a compatible one-dimensional array of type <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>, starting from the first 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(string[] array)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CopyTo(array As String())</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">array</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> array serving as the destination for the copy action.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Win_Spread_InputMan_CellType_ButtonTextCollection_CopyTo_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ButtonTextCollection.CopyTo*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_ButtonTextCollection_CopyTo_System_String___System_Int32_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.ButtonTextCollection.CopyTo(System.String[],System.Int32)">CopyTo(string[], int)</h4>
<div class="markdown level1 summary"><p>Copies the items of the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.ButtonTextCollection.html">ButtonTextCollection</a> to a compatible one-dimensional array of type <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</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(string[] array, int arrayIndex)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CopyTo(array As String(), arrayIndex 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="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">array</span></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> array 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">arrayIndex</span></td>
      <td><p>The zero-based index at which to start placing the copied collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
