NativeExcel for .Net Developer's Reference

IWorksheet.Shapes Property

Returns a IShapes interface that represents all the shapes on the worksheet.

[Visual Basic]
Property ReadOnly Shapes As IShapes
[C#]
IShapes Shapes { get; }
[C++]
__property IShapes* get_Shapes();
[JScript]
function get Shapes() : IShapes

Property Value

IShapes interface.

Example

This example adds a picture to worksheet one.

[C#]
book.Worksheets[1].Shapes.AddPicture("myimage.jpg"); 
[Visual Basic]
book.Worksheets(1).Shapes.AddPicture("myimage.jpg")   
[C++]
book->Worksheets->Item[1]->Shapes->AddPicture(S"myimage.jpg");   

See Also

IWorksheet Interface | NativeExcel Namespace | IPicture Interface | IComment Interface