MESCIUS SPREAD for Windows Forms 15.0J
BackgroundImage プロパティ (HyperLinkCellType)
使用例 

セルの背景画像を取得または設定します。
構文
'宣言
 
Public Property BackgroundImage As Picture
public Picture BackgroundImage {get; set;}

プロパティ値

背景画像を含むPictureオブジェクト
使用例
次のサンプルコードは、ハイパーリンク型セルのプロパティの使用方法を示します。
FarPoint.Win.Spread.CellType.HyperLinkCellType hlnkcell = new FarPoint.Win.Spread.CellType.HyperLinkCellType();
hlnkcell.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("..\\images\\mail16a.ico"));
hlnkcell.Link = "http://www.fpoint.com"; 
hlnkcell.LinkArea = new LinkArea(9,16);
hlnkcell.LinkColor = Color.DarkRed;
hlnkcell.Text = "Click to See Our Web Site.";
hlnkcell.VisitedLinkColor = Color.Gray;
fpSpread1.Sheets[0].Cells[7,2].CellType = hlnkcell;
Dim hlnkcell As New FarPoint.Win.Spread.CellType.HyperLinkCellType()
hlnkcell.BackgroundImage = new FarPoint.Win.Picture(Image.FromFile("..\images\mail16a.ico"))
hlnkcell.Link = "http://www.fpoint.com"
hlnkcell.LinkArea = new LinkArea(9,16)
hlnkcell.LinkColor = Color.DarkRed
hlnkcell.Text = "Click to See Our Web Site."
hlnkcell.VisitedLinkColor = Color.Gray
fpSpread1.Sheets(0).Cells(7,2).CellType = hlnkcell
参照

HyperLinkCellType クラス
HyperLinkCellType メンバ

 

 


© MESCIUS inc. All rights reserved.