Document.Shapes Property
Word Developer Reference |
Returns a Shapes collection that represents all the Shape objects in the specified document. Read-only.
Syntax
expression.Shapes
expression A variable that represents a Document object.
Remarks
This collection can contain drawings, shapes, pictures, OLE objects, ActiveX controls, text objects, and callouts. For information about returning a single member of a collection, see Returning an Object from a Collection.
The Shapes property, when applied to a document, returns all the Shape objects in the main story of the document, excluding the headers and footers.
Example
This example creates a new document, adds a rectangle to it that's 100 points wide and 50 points high, and sets the upper-left corner of the rectangle to be 5 points from the left edge and 25 points from the upper-left corner of the page.
Visual Basic for Applications |
---|
|
This example sets the fill texture for all the shapes in the active document.
Visual Basic for Applications |
---|
|
This example adds a shadow to the first shape in the active document.
Visual Basic for Applications |
---|
|
See Also