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 | |
---|---|---|
AddCallout | Adds a new Shape object representing a borderless line callout to the specified Shapes collection. | |
AddCatalogMergeArea | Adds a Shape object that represents the specified publication's catalog merge area. | |
AddConnector | Adds a new Shape object representing a connector to the specified Shapes collection. | |
AddCurve | Adds a new Shape object representing a Bézier curve to the specified Shapes collection. | |
AddEmptyPictureFrame | Returns a Shape object that represents an empty picture frame inserted at the specified coordinates. | |
AddGroupWizard | Adds a Shape object representing a Design Gallery object to the publication. | |
AddLabel | Adds a new Shape object representing a text label to the specified Shapes collection. | |
AddLine | Adds a new Shape object representing a line to the specified Shapes collection. | |
AddOLEObject | Adds a new Shape object representing an OLE object to the specified Shapes collection. | |
AddPicture | Adds a new Shape object representing a picture to the specified Shapes collection. | |
AddPolyline | Adds a new Shape object representing an open polyline or a closed polygon to the specified Shapes collection. | |
AddShape | Adds a new Shape object representing an AutoShape to the specified Shapes collection. | |
AddTable | Adds a new Shape object representing a table to the specified Shapes collection. | |
AddTextbox | Adds a new Shape object representing a text box to the specified Shapes collection. | |
AddTextEffect | Adds a new Shape object representing a WordArt object to the specified Shapes collection. | |
AddWebControl | Adds a new Shape object representing a Web form control to the specified Shapes collection. | |
AddWebNavigationBar | Adds a Shape object of type pbWebNavigationBar to the current page of a publication. | |
BuildFreeform | Builds a freeform object. Returns a FreeformBuilder object that represents the freeform as it is being built. | |
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. | |
Item | Returns an individual object in a specified collection. | |
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. | |
Range | Returns a ShapeRange object that represents a subset of the shapes in a Shapes collection. | |
SelectAll | Selects all the shapes in the specified Shapes collection. |
Properties
Name | Description | |
---|---|---|
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. | |
Count | Returns a Long that represents the number of items in the specified collection. | |
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. |