# GrapeCity.Spreadsheet.Drawing.IShapeBase.Ungroup

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_Ungroup_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.Ungroup*">Ungroup Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapeBase_Ungroup_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.Ungroup*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_Ungroup_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeBase.Ungroup(System.Boolean)">Ungroup(bool)</h4>
<div class="markdown level1 summary"><p>Ungroups any grouped shapes in the specified shape or range of shapes. Disassembles pictures and OLE objects within the specified shape or range of shapes.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IShapeRange Ungroup(bool rtlReposition = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Ungroup(Optional rtlReposition As Boolean = False) As IShapeRange</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">rtlReposition</span></td>
      <td><p>A boolean value indicating whether the child shapes reposition from right to left after ungroupped.</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.IShapeRange.html">IShapeRange</a></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.html">IShapeRange</a> object that represents the ungrouped shapes.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IShapeBase_Ungroup_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Because a group of shapes is treated as a single object, grouping and ungrouping shapes changes the number of items in the Shapes collection
and changes the index numbers of items that come after the affected items in the collection.</p>
</div>
</div>
