Spread WPF 18
GrapeCity.Spreadsheet.Drawing Namespace / IShapes Interface / AddPictureToCell Method
The file from which the picture is to be created.
The file to link to.
To save the picture with the document.
The row index of the upper-left corner of the shape's bounding box.
The column index of the upper-left corner of the shape's bounding box.
The width of the picture, in pixels.
The height of the picture, in pixels.


In This Topic
    AddPictureToCell Method
    In This Topic
    Creates a picture from an existing file.
    Syntax
    'Declaration
     
    Function AddPictureToCell( _
       ByVal fileName As String, _
       ByVal linkToFile As Boolean, _
       ByVal saveWithDocument As Boolean, _
       ByVal row As Integer, _
       ByVal column As Integer, _
       Optional ByVal width As Double, _
       Optional ByVal height As Double _
    ) As IShape
    'Usage
     
    Dim instance As IShapes
    Dim fileName As String
    Dim linkToFile As Boolean
    Dim saveWithDocument As Boolean
    Dim row As Integer
    Dim column As Integer
    Dim width As Double
    Dim height As Double
    Dim value As IShape
     
    value = instance.AddPictureToCell(fileName, linkToFile, saveWithDocument, row, column, width, height)
    IShape AddPictureToCell( 
       string fileName,
       bool linkToFile,
       bool saveWithDocument,
       int row,
       int column,
       double width,
       double height
    )

    Parameters

    fileName
    The file from which the picture is to be created.
    linkToFile
    The file to link to.
    saveWithDocument
    To save the picture with the document.
    row
    The row index of the upper-left corner of the shape's bounding box.
    column
    The column index of the upper-left corner of the shape's bounding box.
    width
    The width of the picture, in pixels.
    height
    The height of the picture, in pixels.

    Return Value

    The new picture.
    See Also