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

画像がズームの影響を受けるかどうかを取得または設定します。
構文
'宣言
 
Public Property PictureZoomEffect As Boolean
public bool PictureZoomEffect {get; set;}
使用例
次のサンプルコードは、PictureZoomEffectプロパティを設定します。
FarPoint.Win.Spread.CellType.ButtonCellType butncell = new FarPoint.Win.Spread.CellType.ButtonCellType();
butncell.TwoState = true;
Image upimage;
Image dnimage;
upimage = Image.FromFile("C:\\SpreadWin\\cut.png");
dnimage = Image.FromFile("C:\\SpreadWin\\GreenCircle.png");
butncell.Picture = upimage;
butncell.PictureDown = dnimage;
butncell.TextAlign = FarPoint.Win.ButtonTextAlign.TextTopPictBottom;
butncell.Text = "Now up - Click";
butncell.TextDown = "Now down - Click";
butncell.PictureZoomEffect = true;
fpSpread1.Sheets[0].Cells[2, 2].CellType = butncell;
fpSpread1.AllowUserZoom = true;
Dim butncell As New FarPoint.Win.Spread.CellType.ButtonCellType()
butncell.TwoState = True
butncell.Picture = Image.FromFile("C:\\SpreadWin\\cut.png")
butncell.PictureDown = Image.FromFile("C:\\SpreadWin\\GreenCircle.png")
butncell.TextAlign = FarPoint.Win.ButtonTextAlign.TextTopPictBottom
butncell.Text = "Now up - Click"
butncell.TextDown = "Now down - Click"
butncell.PictureZoomEffect = True
fpSpread1.Sheets(0).Cells(2, 2).CellType = butncell
fpSpread1.AllowUserZoom = True
参照

ButtonCellType クラス
ButtonCellType メンバ

 

 


© MESCIUS inc. All rights reserved.