GrapeCity SPREAD for Windows Forms 12.0J
Picture プロパティ (ProgressCellType)


インジケータ スタイルがピクチャを表示するよう設定されている場合にプログレス インジケータに表示する画像を取得または設定します。
構文
'Declaration
 
Public Property Picture As Picture
'使用法
 
Dim instance As ProgressCellType
Dim value As Picture
 
instance.Picture = value
 
value = instance.Picture
public Picture Picture {get; set;}

プロパティ値

画像を含むPictureオブジェクト
次のサンプル コードは、スタイルがピクチャを表示するよう設定されている場合の、プログレス型セルのピクチャを設定します。
FarPoint.Win.Spread.CellType.ProgressCellType p = new FarPoint.Win.Spread.CellType.ProgressCellType(); 
p.Style = FarPoint.Win.ProgressStyle.Picture;
p.Picture = new FarPoint.Win.Picture(Image.FromFile("c:\\fplogosm.bmp"));
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p; 
fpSpread1.ActiveSheet.Cells[0, 0].Value = 50;
FarPoint.Win.Spread.CellType.ProgressCellType p = new FarPoint.Win.Spread.CellType.ProgressCellType(); 
p.Style = FarPoint.Win.ProgressStyle.Picture;
p.Picture = new FarPoint.Win.Picture(Image.FromFile("c:\\fplogosm.bmp"));
fpSpread1.ActiveSheet.Cells[0, 0].CellType = p; 
fpSpread1.ActiveSheet.Cells[0, 0].Value = 50;
参照

ProgressCellType クラス
ProgressCellType メンバ

 

 


Copyright © 2004 GrapeCity inc.