Compartilhar via


CanvasShapes.SelectAll Method

Word Developer Reference

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.

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

See Also