Deletes the specified shape from the collection.
[Visual Basic] Sub Delete() [C#] void Delete(); [C++] void Delete(); [JScript] function Delete();
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();
IShape Interface | NativeExcel Namespace | IShapes interface