The column containing the upper-left corner of the object's bounding rectangle.
The column containing the lower-right corner of the object's bounding rectangle.
Adds the specified image (currently stored as PNG format) to this sheet with the specified location, and settings.
Syntax
'Declaration
Public Overloads Sub AddImage( _
ByVal As Image, _
ByVal As ImageInfo, _
ByVal As Color, _
ByVal As Color, _
ByVal columnLeft As Integer, _
ByVal As Short, _
ByVal As Integer, _
ByVal As Short, _
ByVal columnRight As Integer, _
ByVal As Short, _
ByVal As Integer, _
ByVal As Short, _
ByVal As String _
)
public void AddImage(
Image ,
ImageInfo ,
Color ,
Color ,
int columnLeft,
short ,
int ,
short ,
int columnRight,
short ,
int ,
short ,
string
)
Parameters
- img
- This is an image object that represents the image to be placed on the sheet.
- imageOptions
- SpreadBuilder.Imaging.ImageInfo.
- lineColor
- A System.Drawing.Color for the border lines on the image.
- backColor
- A System.Drawing.Color for the background of the image.
- columnLeft
- The column containing the upper-left corner of the object's bounding rectangle.
- dxL
- The X (horizontal) position of the upper-left corner of the object's bounding rectangle, relative to the left side of the underlying cell (specified in colL), expressed as 1/1024th of the cell's width.
- rowTop
- The row containing the upper-left corner of the object's bounding rectangle.
- dyT
- The Y (vertical) position of the upper-left corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell's height.
- columnRight
- The column containing the lower-right corner of the object's bounding rectangle.
- dxR
- The X (horizontal) position of the lower-right corner of the object's bounding rectangle, relative to the left side of the underlying cell, expressed as 1/1024th of the cell's width.
- rowBottom
The row containing the lower-right corner of the object's bounding rectangle.- dyB
- The Y (vertical) position of the lower-right corner of the object's bounding rectangle, relative to the top of the underlying cell, expressed as 1/1024th of the cell's height.
- hyperlink
- To add a clickable hyperlink to the image, specify the URL here. Otherwise use an empty string.
See Also