| Visual Basic (Declaration) | |
|---|---|
Public Function New() | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As New ComboBoxCellType() | |
| C# | |
|---|---|
public ComboBoxCellType() | |
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 | |
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6