MESCIUS SPREAD for ASP.NET 10.0J
ImageUrl プロパティ (ImageCellType)

画像のURLを取得または設定します。
構文
'Declaration
 
Public Property ImageUrl As String
public string ImageUrl {get; set;}

プロパティ値

画像のURLを含むString
解説
このプロパティは、イメージ型セルに表示する画像のパスとファイル名を取得または設定します。
この例では、イメージ型セルを作成し、セルにグラフィック画像を設定します。セル内に画像を配置し、セル内のテキストを画像の右側に配置します。また、このセルを含む列と行のサイズを変更して、画像の表示を見やすくします。
<style>.CssStyle1 
{
    FONT: 700 12pt verdana; COLOR: yellow
}
</style>

FarPoint.Web.Spread.ImageCellType imagecell = New FarPoint.Web.Spread.ImageCellType();
imagecell.ImageUrl = "img\\logo.jpg";
imagecell.ImageAlign=System.Web.UI.WebControls.ImageAlign.Right;
imagecell.TextOnRight = true;
imagecell.CssClass = "CssStyle1";
FpSpread1.Sheets[0].Cells[0, 0].CellType = imagecell;
<style>.CssStyle1 
{
    FONT: 700 12pt verdana; COLOR: yellow
}
</style>

Dim imagecell As New FarPoint.Web.Spread.ImageCellType()
imagecell.ImageUrl = "img\logo.jpg"
imagecell.ImageAlign=System.Web.UI.WebControls.ImageAlign.Right
imagecell.TextOnRight = True
imagecell.CssClass = "CssStyle1"
FpSpread1.Sheets(0).Cells(0, 0).CellType = imagecell
参照

ImageCellType クラス
ImageCellType メンバ

 

 


© MESCIUS inc. All rights reserved.