# GrapeCity.Spreadsheet.IRange.Copy

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_IRange_Copy_" data-uid="GrapeCity.Spreadsheet.IRange.Copy*">Copy Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_IRange_Copy_" data-uid="GrapeCity.Spreadsheet.IRange.Copy*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_Copy_System_Int32_System_Int32_GrapeCity_Spreadsheet_ManipulationOptions_" data-uid="GrapeCity.Spreadsheet.IRange.Copy(System.Int32,System.Int32,GrapeCity.Spreadsheet.ManipulationOptions)">Copy(int, int, ManipulationOptions)</h4>
<div class="markdown level1 summary"><p>Copies the data from a range of cells to a specified range of cells.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool Copy(int toRow, int toColumn, ManipulationOptions options = ManipulationOptions.All)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Copy(toRow As Integer, toColumn As Integer, Optional options As ManipulationOptions = ManipulationOptions.All) As Boolean</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">toRow</span></td>
      <td><p>Row index of start of range to which to copy</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">toColumn</span></td>
      <td><p>Column index of start of range to which to copy</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.ManipulationOptions.html">ManipulationOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>The options indicates which data type will be performed.</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the cell range is copied successful, <code>false</code> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IRange_Copy_" data-uid="GrapeCity.Spreadsheet.IRange.Copy*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_Copy_GrapeCity_Spreadsheet_IRange_GrapeCity_Spreadsheet_ManipulationOptions_" data-uid="GrapeCity.Spreadsheet.IRange.Copy(GrapeCity.Spreadsheet.IRange,GrapeCity.Spreadsheet.ManipulationOptions)">Copy(IRange, ManipulationOptions)</h4>
<div class="markdown level1 summary"><p>Copies the data from a range of cells to a specified range of cells.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool Copy(IRange destination, ManipulationOptions options = ManipulationOptions.All)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Copy(destination As IRange, Optional options As ManipulationOptions = ManipulationOptions.All) As Boolean</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.Spreadsheet.IRange.html">IRange</a></td>
      <td><span class="parametername">destination</span></td>
      <td><p>The specified range will be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.ManipulationOptions.html">ManipulationOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>The options indicates which data type will be performed.</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the cell range is copied successful, <code>false</code> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IRange_Copy_" data-uid="GrapeCity.Spreadsheet.IRange.Copy*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_Copy_System_String_GrapeCity_Spreadsheet_ManipulationOptions_" data-uid="GrapeCity.Spreadsheet.IRange.Copy(System.String,GrapeCity.Spreadsheet.ManipulationOptions)">Copy(string, ManipulationOptions)</h4>
<div class="markdown level1 summary"><p>Copies the data from a range of cells to a specified range of cells.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool Copy(string destination, ManipulationOptions options = ManipulationOptions.All)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Copy(destination As String, Optional options As ManipulationOptions = ManipulationOptions.All) As Boolean</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">destination</span></td>
      <td><p>The specified range will be copied.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.ManipulationOptions.html">ManipulationOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>The options indicates which data type will be performed.</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the cell range is copied successful, <code>false</code> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_IRange_Copy_" data-uid="GrapeCity.Spreadsheet.IRange.Copy*"></a>
<h4 id="GrapeCity_Spreadsheet_IRange_Copy_System_Boolean_System_Boolean_" data-uid="GrapeCity.Spreadsheet.IRange.Copy(System.Boolean,System.Boolean)">Copy(bool, bool)</h4>
<div class="markdown level1 summary"><p>Copies the data from a range of cells to clipboard.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">bool Copy(bool showUI = false, bool excludeHidden = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Copy(Optional showUI As Boolean = False, Optional excludeHidden As Boolean = False) As Boolean</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.boolean">bool</a></td>
      <td><span class="parametername">showUI</span></td>
      <td><p><code>true</code> if the UI shows copying range; otherwise, only data is copied to clipboard.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">excludeHidden</span></td>
      <td><p><code>true</code> if copying excludes hidden range(s); <code>false</code> otherwise</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the cell range is copied successful, <code>false</code> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
