Compartilhar via


Shapes.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 Shapes
Dim Index As Object
Dim value As ShapeRange

value = instance.Range(Index)
ShapeRange this[
    Object Index
] { get; }

Parameters

  • Index
    Type: System.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

Type: Microsoft.Office.Interop.Excel.ShapeRange

See Also

Reference

Shapes Interface

Shapes Members

Microsoft.Office.Interop.Excel Namespace