Share via


Shapes Object Members

Publisher Developer Reference

A collection of Shape objects that represent all the shapes on a page of a publication. Each Shape object represents an object in the drawing layer, such as an AutoShape, freeform, OLE object, or picture. 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 with which you want to work.

Methods

  Name Description
Aa438798.methods(en-us,office.12).gif AddCallout Adds a new Shape object representing a borderless line callout to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddCatalogMergeArea Adds a Shape object that represents the specified publication's catalog merge area.
Aa438798.methods(en-us,office.12).gif AddConnector Adds a new Shape object representing a connector to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddCurve Adds a new Shape object representing a Bézier curve to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddEmptyPictureFrame Returns a Shape object that represents an empty picture frame inserted at the specified coordinates.
Aa438798.methods(en-us,office.12).gif AddGroupWizard Adds a Shape object representing a Design Gallery object to the publication.
Aa438798.methods(en-us,office.12).gif AddLabel Adds a new Shape object representing a text label to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddLine Adds a new Shape object representing a line to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddOLEObject Adds a new Shape object representing an OLE object to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddPicture Adds a new Shape object representing a picture to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddPolyline Adds a new Shape object representing an open polyline or a closed polygon to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddShape Adds a new Shape object representing an AutoShape to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddTable Adds a new Shape object representing a table to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddTextbox Adds a new Shape object representing a text box to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddTextEffect Adds a new Shape object representing a WordArt object to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddWebControl Adds a new Shape object representing a Web form control to the specified Shapes collection.
Aa438798.methods(en-us,office.12).gif AddWebNavigationBar Adds a Shape object of type pbWebNavigationBar to the current page of a publication.
Aa438798.methods(en-us,office.12).gif BuildFreeform Builds a freeform object. Returns a FreeformBuilder object that represents the freeform as it is being built.
Aa438798.methods(en-us,office.12).gif FindShapeByWizardTag Returns a ShapeRange object representing one or all of the shapes placed in a publication by a wizard and bearing the specified wizard tag.
Aa438798.methods(en-us,office.12).gif Item Returns an individual object in a specified collection.
Aa438798.methods(en-us,office.12).gif Paste Pastes the shapes 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 a text range, the text will be pasted into a newly created TextFrame shape. Returns a ShapeRange object that represents the pasted objects.
Aa438798.methods(en-us,office.12).gif Range Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection.
Aa438798.methods(en-us,office.12).gif SelectAll Selects all the shapes in the specified Shapes collection.

Properties

  Name Description
Aa438798.properties(en-us,office.12).gif Application Used without an object qualifier, this property returns an Application object that represents the current instance of Publisher. Used with an object qualifier, this property returns an Application object that represents the creator of the specified object. When used with an OLE Automation object, it returns the object's application.
Aa438798.properties(en-us,office.12).gif Count Returns a Long that represents the number of items in the specified collection.
Aa438798.properties(en-us,office.12).gif Parent Returns an object that represents the parent object of the specified object. For example, for a TextFrame object, returns a Shape object representing the parent shape of the text frame. Read-only.