NativeExcel for .Net Developer's Reference

IShape.Delete Method 

Deletes the specified shape from the collection.

[Visual Basic]
Sub Delete()
[C#]
void Delete();
[C++]
void Delete();
[JScript]
function Delete();

Example

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

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

See Also

IShape Interface | NativeExcel Namespace | IShapes interface