Spread Windows Forms 10.0 Product Documentation
ImageList Property (ListBoxCellType)
Example 


Gets or sets the list of images for the list box.
Syntax
'Declaration
 
Public Property ImageList As ImageList
'Usage
 
Dim instance As ListBoxCellType
Dim value As ImageList
 
instance.ImageList = value
 
value = instance.ImageList
public ImageList ImageList {get; set;}

Property Value

ImageList object containing the images that correspond with the items in the list
Example
This example creates and specifies the appearance of a list box cell.
FarPoint.Win.Spread.CellType.ListBoxCellType listbx = new FarPoint.Win.Spread.CellType.ListBoxCellType();
listbx.ImageList = ImageList1;
listbx.ItemData = new string[] { 
        "One",
        "Two",
        "Three"};
listbx.Items = new string[] {
        "One",
        "Two",
        "Three"};
listbx.ItemHeight = 40;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = listbx;
Dim listbx As New FarPoint.Win.Spread.CellType.ListBoxCellType
listbx.ImageList = ImageList1
listbx.ItemData = New String() {"One", "Two", "Three"}
listbx.Items = New String() {"One", "Two", "Three"}
listbx.ItemHeight = 40
FpSpread1.ActiveSheet.Cells(0, 0).CellType = listbx 
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

ListBoxCellType Class
ListBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.