Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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)

'Usage
Public Class anvasShapesImplementation
	Implements CanvasShapes
End Class
Dim anvasShapesImplementation1 As New anvasShapesImplementation()

public interface CanvasShapes : IEnumerable
public interface CanvasShapes implements IEnumerable
public interface CanvasShapes implements 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.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

Show: