Compartilhar via


Shapes Interface

A collection of all the Shape objects on the specified sheet.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
<GuidAttribute("0002443A-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute()> _
Public Interface Shapes _
    Inherits IEnumerable
'Usage
Dim instance As Shapes
[GuidAttribute("0002443A-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface Shapes : IEnumerable

Remarks

Each Shape object represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, or picture.

Note

If you want to work with a subset of the shapes on a document — for example, to do something to only the AutoShapes on the document or to only the selected shapes — you must construct a ShapeRange collection that contains the shapes you want to work with.

See Also

Reference

Shapes Members

Microsoft.Office.Interop.Excel Namespace