Shapes Object Members

PowerPoint Developer Reference

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

Methods

  Name Description
Bb251484.methods(en-us,office.12).gif AddCallout Creates a borderless line callout. Returns a Shape object that represents the new callout.
Bb251484.methods(en-us,office.12).gif AddChart Adds a chart to a presentation.
Bb251484.methods(en-us,office.12).gif AddComment Adds a comment. Returns a Shape object that represents the new comment.
Bb251484.methods(en-us,office.12).gif AddConnector Creates a connector. Returns a Shape object that represents the new connector. When a connector is added, it's 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.
Bb251484.methods(en-us,office.12).gif AddCurve Creates a Bézier curve. Returns a Shape object that represents the new curve.
Bb251484.methods(en-us,office.12).gif AddLabel Creates a label. Returns a Shape object that represents the new label.
Bb251484.methods(en-us,office.12).gif AddLine Creates a line. Returns a Shape object that represents the new line.
Bb251484.methods(en-us,office.12).gif AddMediaObject Creates a media object. Returns a Shape object that represents the new media object.
Bb251484.methods(en-us,office.12).gif AddOLEObject Creates an OLE object. Returns a Shape object that represents the new OLE object.
Bb251484.methods(en-us,office.12).gif AddPicture Creates a picture from an existing file. Returns a Shape object that represents the new picture.
Bb251484.methods(en-us,office.12).gif AddPlaceholder Restores a previously deleted placeholder on a slide. Returns a Shape object that represents the restored placeholder.
Bb251484.methods(en-us,office.12).gif AddPolyline Creates an open polyline or a closed polygon drawing. Returns a Shape object that represents the new polyline or polygon.
Bb251484.methods(en-us,office.12).gif AddShape Creates an AutoShape. Returns a Shape object that represents the new AutoShape.
Bb251484.methods(en-us,office.12).gif AddTable Adds a table shape to a slide.
Bb251484.methods(en-us,office.12).gif AddTextbox Creates a text box. Returns a Shape object that represents the new text box.
Bb251484.methods(en-us,office.12).gif AddTextEffect Creates a WordArt object. Returns a Shape object that represents the new WordArt object.
Bb251484.methods(en-us,office.12).gif AddTitle Restores a previously deleted title placeholder to a slide. Returns a Shape object that represents the restored title.
Bb251484.methods(en-us,office.12).gif BuildFreeform Builds a freeform object. Returns a FreeformBuilder object that represents the freeform as it is being built. Use the AddNodes method to add segments to the freeform. After you have added at least one segment to the freeform, you can use the ConvertToShape method to convert the FreeformBuilder object into a Shape object that has the geometric description you've defined in the FreeformBuilder object.
Bb251484.methods(en-us,office.12).gif Item Returns a single object from the specified collection.
Bb251484.methods(en-us,office.12).gif 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.
Bb251484.methods(en-us,office.12).gif PasteSpecial Adds the shape to the collection of shapes in the specified format. If the specified data type is a text data type, then a new text box is created with the text. If the paste succeeds, the PasteSpecial method returns a ShapeRange object representing the shape range that was pasted.
Bb251484.methods(en-us,office.12).gif Range Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection.
Bb251484.methods(en-us,office.12).gif SelectAll Selects all shapes (in a Shapes collection) or all diagram nodes (in a DiagramNodes or DiagramNodeChildren collection).

Properties

  Name Description
Bb251484.properties(en-us,office.12).gif Application Returns an Application object that represents the creator of the specified object.
Bb251484.properties(en-us,office.12).gif Count Returns the number of objects in the specified collection.
Bb251484.properties(en-us,office.12).gif Creator Returns a Long that represents the four-character creator code for the application in which the specified object was created. For example, if the object was created in PowerPoint, this property returns the hexadecimal number 50575054. Read-only.
Bb251484.properties(en-us,office.12).gif HasTitle Returns whether the collection of objects on the specified slide contains a title placeholder. Read-only MsoTriState.
Bb251484.properties(en-us,office.12).gif Parent Returns the parent object for the specified object.
Bb251484.properties(en-us,office.12).gif Placeholders Returns a Placeholders collection that represents the collection of all the placeholders on a slide. Each placeholder in the collection can contain text, a chart, a table, an organizational chart, or another object. Read-only.
Bb251484.properties(en-us,office.12).gif Title Returns a Shape object that represents the slide title. Read-only.