Spread Windows Forms 6.0 Product Documentation
ImageList Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : ImageList Property


Glossary Item Box

Gets or sets the image list of a combo box.

Syntax

Visual Basic (Declaration) 
Public Property ImageList As ImageList
Visual Basic (Usage)Copy Code
Dim instance As ComboBoxCellType
Dim value As ImageList
 
instance.ImageList = value
 
value = instance.ImageList
C# 
public ImageList ImageList {get; set;}

Property Value

ImageList object containing the images that correspond with the items in the list

Remarks

This property is available at run time only.

Example

This example illustrates the use of an image list.
C#Copy Code
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;
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.