MESCIUS SPREAD for ASP.NET 10.0J
ImageCellType コンストラクタ(String)

セルに表示する画像のパスとファイル名
イメージを指定して、新しいイメージ型セルを作成します。
構文
'Declaration
 
Public Function New( _
   ByVal imageUrl As String _
)
public ImageCellType( 
   string imageUrl
)

パラメータ

imageUrl
セルに表示する画像のパスとファイル名
この例では、イメージ型セルを作成し、セルにグラフィック画像を設定します。また、このセルを含む列と行のサイズを変更して、画像の表示を見やすくします。
FpSpread1.Sheets[0].Columns[0].Width = 200;
FpSpread1.Sheets[0].Rows[0].Height = 200;
FarPoint.Web.Spread.ImageCellType imagecell = New FarPoint.Web.Spread.ImageCellType("images\\dogs.jpg");
imagecell.TextOnRight = True;
FpSpread1.Sheets[0].Cells[0, 0].CellType = imagecell;
FpSpread1.Sheets(0).Columns(0).Width = 200
FpSpread1.Sheets(0).Rows(0).Height = 200
Dim imagecell As New FarPoint.Web.Spread.ImageCellType("images\dogs.jpg")
imagecell.TextOnRight = True
FpSpread1.Sheets(0).Cells(0, 0).CellType = imagecell
参照

ImageCellType クラス
ImageCellType メンバ
オーバーロード一覧
ImageUrl プロパティ

 

 


© MESCIUS inc. All rights reserved.