Share via


Shape.CanvasItems Property

Word Developer Reference

Returns a CanvasShapes object that represents a collection of shapes in a drawing canvas.

Syntax

expression.CanvasItems

expression   Required. A variable that represents a Shape object.

Example

This example creates a new drawing canvas in the active document and adds a circle to the canvas.

Visual Basic for Applications
  Sub NewCanvasShape()
    Dim shpCanvas As Shape
    Set shpCanvas = ActiveDocument.Shapes.AddCanvas( _
        Left:=100, Top:=75, Width:=150, Height:=200)
    shpCanvas.CanvasItems.AddShape _
        Type:=msoShapeOval, Top:=25, _
        Left:=25, Width:=150, Height:=150
End Sub

See Also