指定した画像(PNG形式で格納されます)を、位置およびプロパティを指定してシートに追加します。
シンタックス
'宣言
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
)
パラメータ
- img
- シートに配置するイメージを表す画像オブジェクト。
- imageOptions
- SpreadBuilder.Imaging.ImageInfo。
- lineColor
- 画像上の罫線のSystem.Drawing.Color。
- backColor
- 画像の背景のSystem.Drawing.Color。
- columnLeft
- 画像を配置する左上角の列(0〜)。
- dxL
- colLで指定したセルの水平方向のどの位置に配置するかを、セル幅の1/1024単位で表す。
- rowTop
- 画像を配置する左上角の行(0〜)。
- dyT
- セルの垂直方向のどの位置に配置するかを、セルの高さの1/256単位で表す 。
- columnRight
- 画像を配置する右下角の列(0〜)。
- dxR
- columnRightで指定したセルの水平方向のどの位置に配置するかを、セル幅の1/1024単位で表す。
- rowBottom
- 画像を配置する右下角の行(0〜)。
- dyB
- rowBottomで指定したセルの垂直方向のどの位置に配置するかを、セルの高さの1/256単位で表す。
- hyperlink
- 画像にハイパーリンクを設定する場合は、ここにURLを指定します。設定しない場合は、空の文字列にします。
参照