Edit

Share via


GroupShapes.Range[Object] Property

Definition

Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection.

public:
 property Microsoft::Office::Interop::Excel::ShapeRange ^ Range[System::Object ^] { Microsoft::Office::Interop::Excel::ShapeRange ^ get(System::Object ^ Index); };
public Microsoft.Office.Interop.Excel.ShapeRange Range[object Index] { get; }
Public ReadOnly Property Range(Index As Object) As ShapeRange

Parameters

Index
Object

Required 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

Remarks

Although you can use the Range[Object] property to return any number of shapes, it's simpler to use the Item(Object) 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.

Applies to