# GrapeCity.Documents.Excel.Drawing.IShapes.Count

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_Drawing_IShapes_Count_" data-uid="GrapeCity.Documents.Excel.Drawing.IShapes.Count*">Count Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_Drawing_IShapes_Count_" data-uid="GrapeCity.Documents.Excel.Drawing.IShapes.Count*"></a>
<h4 id="GrapeCity_Documents_Excel_Drawing_IShapes_Count" data-uid="GrapeCity.Documents.Excel.Drawing.IShapes.Count">Count</h4>
<div class="markdown level1 summary"><p>Gets the number of <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IShape.html">IShape</a> objects in this collection.</p>
<p>
Use this property to get the current number of <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IShape.html">IShape</a> objects
in the <a class="xref" href="GrapeCity.Documents.Excel.Drawing.IShapes.html">IShapes</a> collection for a worksheet.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">int Count { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">ReadOnly Property Count As Integer</code></pre>
</div>
<h5 id="GrapeCity_Documents_Excel_Drawing_IShapes_Count_examples">Examples</h5>
<pre><code class="lang-csharp">IShapes shapes = worksheet.Shapes;
shapes.AddShape(AutoShapeType.Rectangle, 20, 20, 100, 60);
shapes.AddShape(AutoShapeType.Oval, 140, 20, 100, 60);
int count = shapes.Count;</code></pre>

</div>
