NativeExcel2 for .Net Developer's Reference

IPicture Interface

Represents a picture object.

For a list of all members of this type, see IPicture Members.

[Visual Basic]
PublicInterfaceIPicture
ImplementsIShape
[C#]
publicinterfaceIPicture:IShape
[C++]
public__gc__interfaceIPicture: publicIShape
[JScript]
publicinterfaceIPictureextendsIShape

Remarks

Use IShapes.AddPicture method to create new picture.

The following example adds the shape with JPEG picture on worksheet one.

[C#]
IWorksheet sheet = book.Worksheets[1];
sheet.Cells[3,3].Select(); //the upper-left corner of the shape
sheet.Shapes.AddPicture("image.jpg");

Requirements

Namespace: NativeExcel

Assembly: NativeExcel (in NativeExcel.dll)

See Also

IPicture Members | NativeExcel Namespace | IShapes Interface | IShapes Interface | IWorksheet.Shapes Interface