Share via


Shape.Delete Method

Deletes the specified Shape object.

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

Syntax

'Declaration
Sub Delete
'Usage
Dim instance As Shape

instance.Delete()
void Delete()

Examples

This example deletes all freeform shapes from slide one in the active presentation.

With Application.ActivePresentation.Slides(1).Shapes

    For intShape = .Count To 1 Step -1

        With .Item(intShape)

            If .Type = msoFreeform Then .DeleteEnd With

    Next

End With

See Also

Reference

Shape Interface

Shape Members

Microsoft.Office.Interop.PowerPoint Namespace