NativeExcel for .Net Developer's Reference

IShapes.AddPicture Method (String)

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

[Visual Basic]
Function AddPicture( _ 
   ByVal FileName As String _ 
) As IPicture
[C#]
IPicture AddPicture(
   string FileName
);
[C++]
IPicture* AddPicture(
   String* FileName
);
[JScript]
function AddPicture(
   String FileName
): 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