Share via


CanvasShapes.SelectAll Method (Word)

Selects all the shapes in a canvas.

Syntax

expression .SelectAll

expression Required. A variable that represents a CanvasShapes collection.

Remarks

This method doesn't select InlineShape objects.

Example

This example selects and deletes all the shapes inside the first canvas of the active document.

Sub SelectCanvasShapes() 
 Dim s As Shape 
 Set s = ActiveDocument.Shapes.Range(1) 
 s.CanvasItems.SelectAll 
 Selection.Delete 
End Sub

See Also

Concepts

CanvasShapes Object Members

CanvasShapes Collection