NativeExcel for .Net Developer's Reference

IShape.DeleteMethod

Deletes the specified shape from the collection.

[Visual Basic]
SubDelete()
[C#]
voidDelete();
[C++]
voidDelete();
[JScript]
functionDelete();

Example

This example deletes first shape from the shape collection on sheet one.

[C#]
 book.Worksheets[1].Shapes[1].Delete();
[VisualBasic]
 book.Worksheets(1).Shapes(1).Delete()
[C++]
 book->Worksheets->Item[1]->Shapes->Item[1]->Delete();

See Also

IShape Interface | NativeExcel Namespace | IShapes interface