# GrapeCity.Spreadsheet.Drawing.IShapeRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_Drawing_IShapeRange" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange" class="text-break">IShapeRange Interface
</h1>
  <div class="markdown level0 summary"><p>Represents a shape range, which is a set of shapes on a document.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.Drawing.html">GrapeCity.Spreadsheet.Drawing</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_Drawing_IShapeRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IShapeRange : IShapeBase</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IShapeRange
    Inherits IShapeBase</code></pre>
  </div>
  <h5 id="GrapeCity_Spreadsheet_Drawing_IShapeRange_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>A shape range can contain as few as a single shape or as many as all the shapes on the document.
You can include whichever shapes you want — chosen from among all the shapes on the document or all the shapes in the selection — to construct a shape range.
For example, you could construct a <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.html">IShapeRange</a> collection that contains the first three shapes on a document, all the selected shapes on a document,
or all the freeforms on a document.</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Count" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Count">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Count.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an integer value that represents the number of shapes in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Height" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Height">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Height.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Height">Height</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the height, in pixels, of the shape.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Item_System_Int32_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Item.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a> object at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Item_System_String_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Item(System.String)">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Item.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShape.html">IShape</a> object with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Left" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Left">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Left.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the distance, in pixels, from the left edge of the shape to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Top" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Top">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Top.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Top">Top</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the distance, in pixels, from the top edge of the topmost shape in the shape range to the top edge of the worksheet.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Visible" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Visible">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Visible.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Visible">Visible</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a boolean value that determines whether the shape is visible.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Width" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Width">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Width.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that represents the width, in pixels, of the shape.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_ZOrderPosition" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.ZOrderPosition">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.ZOrderPosition.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_ZOrderPosition">ZOrderPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of the specified shape in the z-order.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Align_GrapeCity_Spreadsheet_Drawing_AlignCommand_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Align(GrapeCity.Spreadsheet.Drawing.AlignCommand)">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Align.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Align_GrapeCity_Spreadsheet_Drawing_AlignCommand_">Align(AlignCommand)</a>
        </td>
        <td class="markdown level1 summary"><p>Aligns the shapes in the specified range of shapes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Distribute_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Distribute(System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Distribute.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Distribute_System_Boolean_">Distribute(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Horizontally or vertically distributes the shapes in the specified range of shapes.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Duplicate" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Duplicate">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Duplicate.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Duplicate">Duplicate()</a>
        </td>
        <td class="markdown level1 summary"><p>Duplicates the object and returns a reference to the new copy.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Group_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Group(System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Group.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Group_System_Boolean_">Group(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Groups the shapes in the specified range.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Drawing_IShapeRange_Regroup_System_Boolean_" data-uid="GrapeCity.Spreadsheet.Drawing.IShapeRange.Regroup(System.Boolean)">
          <a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeRange.Regroup.html#GrapeCity_Spreadsheet_Drawing_IShapeRange_Regroup_System_Boolean_">Regroup(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Regroups the group that the specified shape range belonged to previously.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="GrapeCity.Spreadsheet.Drawing.IShapeBase.html">IShapeBase</a></div>
  </div>

</div>
