Share via


Shapes Members

Include Protected Members
Include Inherited Members

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

The Shapes type exposes the following members.

Properties

  Name Description
Public property Application Returns an Application object that represents the creator of the specified object.
Public property Count Returns the number of objects in the specified collection. Read-only.
Public property Creator Returns a four-character creator code for the application in which the specified object was created. For example, if the object was created in Microsoft PowerPoint, this property returns the hexadecimal number 50575054. Read-only.
Public property HasTitle Returns whether the collection of objects on the specified slide contains a title placeholder. Read-only.
Public property Item Returns a Shape object from the specified Shapes collection.
Public property Parent Returns the parent object for the specified object.
Public property Placeholders Returns a Placeholders collection that represents the collection of all the placeholders on a slide. Read-only.
Public property Title Returns a Shape object that represents the slide title. Read-only.

Top

Methods

  Name Description
Public method AddCallout Creates a borderless line callout. Returns a Shape object that represents the new callout.
Public method AddCanvas Reserved for internal use.
Public method AddChart Adds a chart to a presentation.
Public method AddComment Adds a comment. Returns a Shape object that represents the new comment.
Public method AddConnector Creates a connector. Returns a Shape object that represents the new connector. When a connector is added, it is not connected to anything. Use the BeginConnect and EndConnect methods to attach the beginning and end of a connector to other shapes in the document.
Public method AddCurve Creates a Bézier curve. Returns a Shape object that represents the new curve.
Public method AddDiagram Reserved for internal use.
Public method AddLabel Creates a label. Returns a Shape object that represents the new label.
Public method AddLine Creates a line. Returns a Shape object that represents the new line.
Public method AddMediaObject Creates a media object. Returns a Shape object that represents the new media object.
Public method AddMediaObject2 Adds a new media object.
Public method AddMediaObjectFromEmbedTag Adds a media object from an embedded tag to a Shapes object.
Public method AddOLEObject Creates an OLE object. Returns a Shape object that represents the new OLE object.
Public method AddPicture Creates a picture from an existing file. Returns a Shape object that represents the new picture.
Public method AddPlaceholder Restores a previously deleted placeholder on a slide. Returns a Shape object that represents the restored placeholder.
Public method AddPolyline Creates an open polyline or a closed polygon drawing. Returns a Shape object that represents the new polyline or polygon.
Public method AddShape Creates an AutoShape. Returns a Shape object that represents the new AutoShape.
Public method AddSmartArt Adds a SmartArt diagram to the Shapes object.
Public method AddTable Adds a table shape to a slide.
Public method AddTextbox Creates a text box. Returns a Shape object that represents the new text box.
Public method AddTextEffect Creates a WordArt object. Returns a Shape object that represents the new WordArt object.
Public method AddTitle Restores a previously deleted title placeholder to a slide. Returns a Shape object that represents the restored title.
Public method BuildFreeform Builds a freeform object. Returns a FreeformBuilder object that represents the freeform as it is being built.
Public method GetEnumerator() (Inherited from IEnumerable.)
Public method GetEnumerator() Returns an enumerator that iterates through the collection of Shape objects.
Public method Paste Pastes the shapes, slides, or text on the Clipboard into the specified Shapes collection, at the top of the z-order. Each pasted object becomes a member of the specified Shapes collection. If the Clipboard contains entire slides, the slides will be pasted as shapes that contain the images of the slides. If the Clipboard contains a text range, the text will be pasted into a newly created TextFrame shape. Returns a ShapeRange object that represents the pasted objects.
Public method PasteSpecial Pastes the contents of the Clipboard, using a special format.
Public method Range Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection.
Public method SelectAll Selects all shapes (in a Shapes collection) or all diagram nodes (in a DiagramNode or DiagramNodeChildren collection).

Top

See Also

Reference

Shapes Interface

Microsoft.Office.Interop.PowerPoint Namespace