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 As Worksheet, _
ByVal As String, _
ByVal As Boolean, _
ByVal As Boolean, _
ByVal As Integer, _
ByVal column As Integer, _
Optional ByVal As String, _
Optional ByVal As Double, _
Optional ByVal 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)
public ShapeActionsCommand(
Worksheet ,
string ,
bool ,
bool ,
int ,
int column,
string ,
double ,
double
)
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