Creates a new combo box.
Syntax
Visual Basic (Declaration) | |
---|
Public Function New() |
C# | |
---|
public ComboBoxCellType() |
Example
This example creates a ComboBoxCellType object and makes all the cells in the first column combo boxes.
C# | Copy Code |
---|
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType();
string[] cbstr;
cbstr = new String[] {"One", "Two", "Three"};
cb.Items = cbstr;
FpSpread1.ActiveSheetView.Columns[0].CellType = cb;
|
Visual Basic | Copy Code |
---|
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType()
Dim cbstr As String()
cbstr = New String() {"One", "Two", "Three"}
cb.Items = cbstr
FpSpread1.ActiveSheetView.Columns(0).CellType = cb
|
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also