CanvasShapes Interface

Represents the shapes in a drawing canvas.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

[GuidAttribute("396F9073-F9FD-11D3-8EA0-0050049A1A01")]
public interface CanvasShapes : IEnumerable

Use the CanvasItems property of either a Shape or ShapeRange object to return a CanvasShapes collection. To add shapes to a drawing canvas, use the following methods of the CanvasShapes collection: AddCallout, AddConnector, AddCurve, AddLabel, AddLine, AddPicture, AddPolyline, AddShape, AddTextbox, AddTextEffect, or BuildFreeform.

Use CanvasItems (index), where index is the name or the index number, to return a single shape in the CanvasShapes collection.

Each shape is assigned a default name when it is created. For example, if you add three different shapes to a document, they might be named Rectangle 2, TextBox 3, and Oval 4. Use the Name property to reference the default name or to assign a more meaningful name to a shape.

Community Additions

ADD
Show:
© 2014 Microsoft