[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IBackgroundPictures.AddPicture

AddPicture Method

AddPicture(string, double, double, double, double)

Creates a background picture from an existing file. Returns the IBackgroundPicture object that represents the new background picture.

Declaration
IBackgroundPicture AddPicture(string filename, double left, double top, double width, double height)
Function AddPicture(filename As String, left As Double, top As Double, width As Double, height As Double) As IBackgroundPicture
Parameters
Type Name Description
string filename

The file from which the object is to be created

double left

The position (in points) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.

double top

The position (in points) of the upper-left corner of the destination rectangle relative to the top of the document.

double width

The width of the destination rectangle, in points.

double height

The height of the destination rectangle, in points.

Returns
Type Description
IBackgroundPicture

The IBackgroundPictureThe object.

AddPicture(Stream, ImageType, double, double, double, double)

Creates a background picture from an existing stream. Returns the IBackgroundPicture object that represents the new background picture.

Declaration
IBackgroundPicture AddPicture(Stream stream, ImageType type, double left, double top, double width, double height)
Function AddPicture(stream As Stream, type As ImageType, left As Double, top As Double, width As Double, height As Double) As IBackgroundPicture
Parameters
Type Name Description
Stream stream

The stream from which the object is to be created.

ImageType type

Specifies the type of background picture to create.

double left

The position (in points) of the upper-left corner of the destination rectangle relative to the upper-left corner of the document.

double top

The position (in points) of the upper-left corner of the destination rectangle relative to the top of the document.

double width

The width of the destination rectangle, in points.

double height

The height of the destination rectangle, in points.

Returns
Type Description
IBackgroundPicture

The IBackgroundPictureThe object.