NativeExcel2 for .Net Developer's Reference

IShapes.AddPictureMethod(String)

Creates a picture from the specified file. Returns a IPicture interface that represents the new picture.

[Visual Basic]
FunctionAddPicture(_
ByValFileNameAsString_
)AsIPicture
[C#]
IPictureAddPicture(
stringFileName
);
[C++]
IPicture*AddPicture(
String*FileName
);
[JScript]
functionAddPicture(
StringFileName
):IPicture;

Parameters

FileName
A string that indicates the name of the file from which the picture object is to be created. You can include a full path; if you don't, NativeExcel opens the file in the current folder.

Return Value

Returns IPicture interface if it succeeded, null otherwise.

See Also

IShapes Interface | NativeExcel Namespace | IShapes.AddPicture Overload List