Document.Shapes Property (2007 System)
Assembly: Microsoft.Office.Tools.Word.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)
This collection can contain drawings, shapes, pictures, OLE objects, ActiveX controls, text objects, and callouts.
The property, when applied to a document, returns all the Shape objects in the main story of the document, excluding the headers and footers. When applied to a HeaderFooter object, the property returns all the Shape objects found in all the headers and footers in the document.
The following code example adds a shape to the upper left-hand corner of the document.
This example is for a document-level customization.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.