GrapeCity ActiveReports for .NET 14.0J
AddImage(Image,ImageInfo,Color,Color,Int32,Int16,Int32,Int16,Int32,Int16,Int32,Int16,String) メソッド

GrapeCity.ActiveReports.Export.Excel アセンブリ > GrapeCity.SpreadBuilder 名前空間 > DDSheet クラス > AddImage メソッド : AddImage(Image,ImageInfo,Color,Color,Int32,Int16,Int32,Int16,Int32,Int16,Int32,Int16,String) メソッド
シートに配置するイメージを表す画像オブジェクト。
SpreadBuilder.Imaging.ImageInfo。
画像上の罫線のSystem.Drawing.Color。
画像の背景のSystem.Drawing.Color。
画像を配置する左上角の列(0〜)。
colLで指定したセルの水平方向のどの位置に配置するかを、セル幅の1/1024単位で表す。
画像を配置する左上角の行(0〜)。
セルの垂直方向のどの位置に配置するかを、セルの高さの1/256単位で表す 。
画像を配置する右下角の列(0〜)。
columnRightで指定したセルの水平方向のどの位置に配置するかを、セル幅の1/1024単位で表す。
画像を配置する右下角の行(0〜)。
rowBottomで指定したセルの垂直方向のどの位置に配置するかを、セルの高さの1/256単位で表す。
画像にハイパーリンクを設定する場合は、ここにURLを指定します。設定しない場合は、空の文字列にします。
指定した画像(PNG形式で格納されます)を、位置およびプロパティを指定してシートに追加します。
シンタックス
'宣言
 
Public Overloads Sub AddImage( _
   ByVal img As Image, _
   ByVal imageOptions As ImageInfo, _
   ByVal lineColor As Color, _
   ByVal backColor As Color, _
   ByVal columnLeft As Integer, _
   ByVal dxL As Short, _
   ByVal rowTop As Integer, _
   ByVal dyT As Short, _
   ByVal columnRight As Integer, _
   ByVal dxR As Short, _
   ByVal rowBottom As Integer, _
   ByVal dyB As Short, _
   ByVal hyperlink As String _
) 
public void AddImage( 
   Image img,
   ImageInfo imageOptions,
   Color lineColor,
   Color backColor,
   int columnLeft,
   short dxL,
   int rowTop,
   short dyT,
   int columnRight,
   short dxR,
   int rowBottom,
   short dyB,
   string hyperlink
)

パラメータ

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を指定します。設定しない場合は、空の文字列にします。
参照

DDSheet クラス
DDSheet メンバ
オーバーロード一覧