# GrapeCity.Spreadsheet.Drawing.IShapes.AddShapeToCell

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapes_AddShapeToCell_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddShapeToCell*">AddShapeToCell Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapes_AddShapeToCell_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddShapeToCell*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapes_AddShapeToCell_GrapeCity_Spreadsheet_Drawing_AutoShapeType_System_Int32_System_Int32_System_Double_System_Double_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapes.AddShapeToCell(GrapeCity.Spreadsheet.Drawing.AutoShapeType,System.Int32,System.Int32,System.Double,System.Double)">AddShapeToCell(AutoShapeType, int, int, double, double)</h4>
<div class="markdown level1 summary"><p>Creates a new shape.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IShape AddShapeToCell(AutoShapeType type, int row, int column, double width, double height)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function AddShapeToCell(type As AutoShapeType, row As Integer, column As Integer, width As Double, height As Double) As IShape</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.Drawing.AutoShapeType.html">AutoShapeType</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Specifies the type of <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a> to create.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>The row index of the upper-left corner of the shape's bounding box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>The column index of the upper-left corner of the shape's bounding box.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">width</span></td>
      <td><p>The initial width, in pixels, of the shape.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">height</span></td>
      <td><p>The initial height, in pixels, of the shape.</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="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a></td>
      <td><p>The created <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a> object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
