FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.CellType 名前空間 > ComboBoxCellType クラス : ImageList プロパティ |
'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;}
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