[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.Drawing.IShapes.AddPictureToCell

AddPictureToCell Method

AddPictureToCell(string, bool, bool, int, int, double, double)

Creates a picture from an existing file.

Declaration
IShape AddPictureToCell(string fileName, bool linkToFile, bool saveWithDocument, int row, int column, double width = NaN, double height = NaN)
Function AddPictureToCell(fileName As String, linkToFile As Boolean, saveWithDocument As Boolean, row As Integer, column As Integer, Optional width As Double = NaN, Optional height As Double = NaN) As IShape
Parameters
Type Name Description
string fileName

The file from which the picture is to be created.

bool linkToFile

The file to link to.

bool saveWithDocument

To save the picture with the document.

int row

The row index of the upper-left corner of the shape's bounding box.

int column

The column index of the upper-left corner of the shape's bounding box.

double width

The width of the picture, in pixels.

double height

The height of the picture, in pixels.

Returns
Type Description
IShape

The new picture.