GroupShapes.Range Property
Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property Range ( _
Index As Object _
) As ShapeRange
Get
'Usage
Dim instance As GroupShapes
Dim Index As Object
Dim value As ShapeRange
value = instance.Range(Index)
ShapeRange this[
Object Index
] { get; }
Parameters
Index
Type: System.ObjectRequired Object. The individual shapes to be included in the range. Can be an integer that specifies the index number of the shape, a string that specifies the name of the shape, or an array that contains either integers or strings.
Property Value
Type: Microsoft.Office.Interop.Excel.ShapeRange
Remarks
Although you can use the Range property to return any number of shapes, it's simpler to use the Item method if you only want to return a single member of the collection.
To specify an array of integers or strings for Index, you can use the Array function.