PowerTools SPREAD for ASP.NET 8.0J
ImageAlign プロパティ (ImageCellType)

テキストに対する画像の配置を取得または設定します。
構文
'Declaration
 
Public Property ImageAlign As ImageAlign
public ImageAlign ImageAlign {get; set;}

プロパティ値

画像の配置を指定するImageAlign設定
解説

このプロパティを使用し、セル内のピクチャの配置をテキストに相対して指定します。TextOnRightプロパティを設定し、セル内のテキストの配置(ピクチャの左または右側)を指定します。

この例では、イメージ型セルを作成し、セルにグラフィック画像を設定します。セル内に画像を配置し、セル内のテキストを画像の右側に配置します。また、このセルを含む列と行のサイズを変更して、画像の表示を見やすくします。
<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 メンバ
TextOnRight プロパティ

 

 


© 2003-2015, GrapeCity inc. All rights reserved.