Share via


Shapes Members

Include Protected Members
Include Inherited Members

A collection of Shape objects that represent all the shapes in a document or all the shapes in all the headers and footers in a document.

The Shapes type exposes the following members.

Methods

  Name Description
Public method AddCallout Adds a borderless line callout to a document. Returns a Shape object that represents the callout and adds it to the Shapes collection.
Public method AddCanvas Adds a drawing canvas to a document. Returns a Shape object that represents the drawing canvas and adds it to the Shapes collection.
Public method AddChart Inserts a chart, of the specified type, as a shape into the active document, and opens Microsoft Office Excel with a sheet that contains the default data that Microsoft Office Word uses to create the chart.
Public method AddConnector Reserved for internal use.
Public method AddCurve Returns a Shape object that represents a Bézier curve in a document.
Public method AddDiagram Returns a Shape object that represents a newly created diagram in a document.
Public method AddLabel Adds a text label to a document. Returns a Shape object that represents the text label and adds it to the Shapes collection.
Public method AddLine Adds a line to a document. Returns a Shape object that represents the line and adds it to the AddCallout collection.
Public method AddOLEControl Creates an ActiveX control (formerly known as an OLE control). Returns the Shape object that represents the new ActiveX control.
Public method AddOLEObject Creates an OLE object. Returns the Shape object that represents the new OLE object.
Public method AddPicture Adds a picture to a document. Returns a Shape object that represents the picture and adds it to the Shapes collection.
Public method AddPolyline Adds an open or closed polygon to a document. Returns a Shape object that represents the polygon and adds it to the Shapes collection.
Public method AddShape Adds an AutoShape to a document. Returns a Shape object that represents the AutoShape and adds it to the Shapes collection.
Public method AddSmartArt Inserts the specified SmartArt graphic into the active document.
Public method AddTextbox Adds a text box to a document. Returns a Shape object that represents the text box and adds it to the Shapes collection.
Public method AddTextEffect Adds a WordArt shape to a document. Returns a Shape object that represents the WordArt and adds it to the Shapes collection.
Public method BuildFreeform Builds a freeform object. Returns a FreeformBuilder object that represents the freeform as it is being built.
Public method GetEnumerator (Inherited from IEnumerable.)
Public method Range Returns a ShapeRange object.
Public method SelectAll Selects all the shapes in the main story, in a canvas, or in headers and footers of a document.

Top

Properties

  Name Description
Public property Application Returns a Application object that represents the Microsoft Word application.
Public property Count Returns the number of items in the specified collection.
Public property Creator Returns a 32-bit integer that indicates the application in which the specified object was created.
Public property Item Returns an individual object in a collection.
Public property Parent Returns an object that represents the parent object of the specified object.

Top

See Also

Reference

Shapes Interface

Microsoft.Office.Interop.Word Namespace