| FarPoint.Web.Spread 名前空間 > ImageCellType クラス : ImageAlign プロパティ |
'DeclarationPublic Property ImageAlign As ImageAlign
public ImageAlign ImageAlign {get; set;}
このプロパティを使用し、セル内のピクチャの配置をテキストに相対して指定します。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