Gets or sets the control for the list portion.
Syntax
Visual Basic (Declaration) | |
---|
Public Property ListControl As ListBox |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ComboBoxCellType
Dim value As ListBox
instance.ListControl = value
value = instance.ListControl |
C# | |
---|
public ListBox ListControl {get; set;} |
Property Value
ListBox object containing the list box control
Remarks
Example
C# | Copy Code |
---|
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; |
Visual Basic | Copy Code |
---|
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 |
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