# GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetPosition

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetPosition_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetPosition*">SetPosition Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetPosition_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetPosition*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetPosition_System_Int32_System_Double_System_Double_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeNodes.SetPosition(System.Int32,System.Double,System.Double)">SetPosition(int, double, double)</h4>
<div class="markdown level1 summary"><p>Sets the location of the node specified by <code class="paramref">index</code>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetPosition(int index, double x1, double y1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetPosition(index As Integer, x1 As Double, y1 As Double)</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">index</span></td>
      <td><p>The node whose position is to be set.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">x1</span></td>
      <td><p>The position (in points) of the new node relative to the upper-left corner of the document.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">y1</span></td>
      <td><p>The position (in points) of the new node relative to the upper-left corner of the document.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IShapeNodes_SetPosition_System_Int32_System_Double_System_Double__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Note that, depending on the editing type of the node, this method may affect the position of adjacent nodes.</p>
</div>
</div>
