Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet.Commands Namespace / ShapeActionsCommand Class / ShapeActionsCommand Constructor / ShapeActionsCommand Constructor(Worksheet,String,Boolean,Boolean,Int32,Int32,String,Double,Double)
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
    ShapeActionsCommand Constructor(Worksheet,String,Boolean,Boolean,Int32,Int32,String,Double,Double)
    In This Topic
    Creates a picture from an existing file.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal worksheet As Worksheet, _
       ByVal fileName As String, _
       ByVal linkToFile As Boolean, _
       ByVal saveWithDocument As Boolean, _
       ByVal row As Integer, _
       ByVal column As Integer, _
       Optional ByVal formula As String, _
       Optional ByVal width As Double, _
       Optional ByVal height As Double _
    )
    'Usage
     
    
    Dim worksheet As Worksheet
    Dim fileName As String
    Dim linkToFile As Boolean
    Dim saveWithDocument As Boolean
    Dim row As Integer
    Dim column As Integer
    Dim formula As String
    Dim width As Double
    Dim height As Double
     
    Dim instance As New ShapeActionsCommand(worksheet, fileName, linkToFile, saveWithDocument, row, column, formula, width, height)

    Parameters

    worksheet
    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.
    formula
    width
    The width of the picture, in pixels.
    height
    The height of the picture, in pixels.
    See Also