Partager via


Shapes Interface

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

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

Syntax

'Declaration
<GuidAttribute("91493475-5A91-11CF-8700-00AA0060263B")> _
Public Interface Shapes _
    Inherits IEnumerable
'Usage
Dim instance As Shapes
[GuidAttribute("91493475-5A91-11CF-8700-00AA0060263B")]
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 that you want to work with. For an overview of how to work either with a single shape or with more than one shape at a time, see How to: Work with Shapes (Drawing Objects)

See Also

Reference

Shapes Members

Microsoft.Office.Interop.PowerPoint Namespace