Spread Windows Forms 12.0 Product Documentation
ListControl Property (ComboBoxCellType)
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ComboBoxCellType Class : ListControl Property
Gets or sets the control for the list portion.
Syntax
'Declaration
 
Public Property ListControl As ListBox
'Usage
 
Dim instance As ComboBoxCellType
Dim value As ListBox
 
instance.ListControl = value
 
value = instance.ListControl
public ListBox ListControl {get; set;}

Property Value

ListBox object containing the list box control
Remarks
This property is available at run time only.
Example
FarPoint.Win.Spread.CellType.ComboBoxCellType cmbocell = new FarPoint.Win.Spread.CellType.ComboBoxCellType();
ListBox list = new ListBox();
list.Items.AddRange(new Object[] {"One", "Two", "Three"});
cmbocell.ListControl = list;
cmbocell.Items = (new String[] {"", "", ""});
fpSpread1.ActiveSheet.Columns[0].CellType = cmbocell;
Dim cmbocell As New FarPoint.Win.Spread.CellType.ComboBoxCellType()
Dim list As New ListBox()
cmbocell.Items() = (New String() {"", "", ""})
list.Items.AddRange(New Object() {"One", "Two", "Three"})
cmbocell.ListControl = list
fpSpread1.ActiveSheet.Columns(0).CellType = cmbocell
See Also

Reference

ComboBoxCellType Class
ComboBoxCellType Members

User-Task Documentation

Setting a Combo Box Cell