Spread Windows Forms 12.0 Product Documentation
ListBoxCellType Constructor()
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ListBoxCellType Class > ListBoxCellType Constructor : ListBoxCellType Constructor()
Creates a new list box cell with default settings.
Syntax
'Declaration
 
Public Function New()
'Usage
 
Dim instance As New ListBoxCellType()
public ListBoxCellType()
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 
See Also

Reference

ListBoxCellType Class
ListBoxCellType Members
Overload List