# GrapeCity.Spreadsheet.Drawing.IShapeRange.Group

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Group_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Group*">Group Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Group_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Group*"></a>
<h4 id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Group_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Group(System.Boolean)">Group(bool)</h4>
<div class="markdown level1 summary"><p>Groups the shapes in the specified range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">IGroupShape Group(bool rtlReposition = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function Group(Optional rtlReposition As Boolean = False) As IGroupShape</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 groupped.</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.IGroupShape.html">IGroupShape</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a> object contains all grouped shapes.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Group_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>
