PowerTools SPREAD for Windows Forms 10.0J
RowSelectorImage フィールド


行セレクターの画像のインデックス(14)を指定します。
構文
'Declaration
 
Public Const RowSelectorImage As Integer
'使用法
 
Dim value As Integer
 
value = SpreadView.RowSelectorImage
public const int RowSelectorImage
次のサンプルコードは、RowSelectorImageフィールドを使用します。
fpSpread1.Sheets[0].ShowRowSelector = true;
FarPoint.Win.Spread.SpreadView wrkbk = fpSpread1.GetRootWorkbook();
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImageDisabled, Image.FromFile("c:\\2.jpg"));
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImage, Image.FromFile("c:\\1.jpg"));
Image indicator;
indicator = wrkbk.GetImage(14);
listBox1.Items.Add(indicator.ToString());
FpSpread1.Sheets(0).ShowRowSelector = True
Dim wrkbk As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook()
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImageDisabled, Image.FromFile("c:\2.jpg"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.RowSelectorImage, Image.FromFile("C:\icon1.ico"))
Dim indicator As Image
indicator = wrkbk.GetImage(14)
ListBox1.Items.Add(indicator.ToString())
参照

SpreadView クラス
SpreadView メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.