# GrapeCity.SpreadBuilder.DDSheets.Move

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_SpreadBuilder_DDSheets_Move_" data-uid="GrapeCity.SpreadBuilder.DDSheets.Move*">Move Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_SpreadBuilder_DDSheets_Move_" data-uid="GrapeCity.SpreadBuilder.DDSheets.Move*"></a>
<h4 id="GrapeCity_SpreadBuilder_DDSheets_Move_System_String_System_Int16_" data-uid="GrapeCity.SpreadBuilder.DDSheets.Move(System.String,System.Int16)">Move(string, short)</h4>
<div class="markdown level1 summary"><p>Moves the sheet with the specified name to the specified position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Move(string sName, short newPosition)</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">sName</span></td>
      <td><p>The value of the DDSheet's Name property that you want to move.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a></td>
      <td><span class="parametername">newPosition</span></td>
      <td><p>The new position you want to move the sheet to.
If the new position is less than zero, the sheet will be moved to the beginning of the collection (0).
If the new position is greater than the upper bound of this collection, the sheet will be moved to the end of the collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_SpreadBuilder_DDSheets_Move_" data-uid="GrapeCity.SpreadBuilder.DDSheets.Move*"></a>
<h4 id="GrapeCity_SpreadBuilder_DDSheets_Move_System_Int16_System_Int16_" data-uid="GrapeCity.SpreadBuilder.DDSheets.Move(System.Int16,System.Int16)">Move(short, short)</h4>
<div class="markdown level1 summary"><p>Moves the sheet at the specified position to the specified new position.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Move(short oldPosition, short newPosition)</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.int16">short</a></td>
      <td><span class="parametername">oldPosition</span></td>
      <td><p>The current position (index) of the sheet you want to move.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int16">short</a></td>
      <td><span class="parametername">newPosition</span></td>
      <td><p>The new position you want to move the sheet to.
If the new position is less than zero, the sheet will be moved to the beginning of the collection (0).
If the new position is greater than the upper bound of this collection, the sheet will be moved to the end of the collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
