PowerTools SPREAD for Windows Forms 8.0J
ImageList プロパティ (ComboBoxCellType)


コンボボックスの画像リストを取得または設定します。
構文
'Declaration
 
Public Property ImageList As ImageList
'使用法
 
Dim instance As ComboBoxCellType
Dim value As ImageList
 
instance.ImageList = value
 
value = instance.ImageList
public ImageList ImageList {get; set;}

プロパティ値

リストの項目に対応する画像を含む ImageList オブジェクト
解説
このプロパティが使用できるのは実行時のみです。
次のサンプルコードは、画像リストの使用方法を示します。
FarPoint.Win.Spread.CellType.ComboBoxCellType cb = new FarPoint.Win.Spread.CellType.ComboBoxCellType(); 
cb.Items = new string[]{"Morning", "Afternoon", "Evening"}; 
ImageList img = new ImageList(); 
img.Images.Add(Image.FromFile("D:\\images\\cloud.ico")); 
img.Images.Add(Image.FromFile("D:\\images\\sun.ico")); 
img.Images.Add(Image.FromFile("D:\\images\\moon.ico")); 
cb.ImageList = img; 
fpSpread1.ActiveSheet.Cells[0, 0].CellType = cb;
Dim cb As New FarPoint.Win.Spread.CellType.ComboBoxCellType
cb.Items = New String() {"Morning", "Afternoon", "Evening"}
Dim img As New ImageList
img.Images.Add(Image.FromFile("D:\images\cloud.ico"))
img.Images.Add(Image.FromFile("D:\images\sun.ico"))
img.Images.Add(Image.FromFile("D:\images\moon.ico"))
cb.ImageList = img
FpSpread1.ActiveSheet.Cells(0, 0).CellType = cb
参照

ComboBoxCellType クラス
ComboBoxCellType メンバ

開発者ガイド

コンボボックス型セル

 

 


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