'Declaration Public Property ListItems As ListItem()
'Usage Dim instance As ComboBoxCellType Dim value() As ListItem instance.ListItems = value value = instance.ListItems
public ListItem[] ListItems {get; set;}
'Declaration Public Property ListItems As ListItem()
'Usage Dim instance As ComboBoxCellType Dim value() As ListItem instance.ListItems = value value = instance.ListItems
public ListItem[] ListItems {get; set;}
FarPoint.Web.Spread.ComboBoxCellType cb = new FarPoint.Web.Spread.ComboBoxCellType(); FarPoint.Web.Spread.ListItem[] items = new FarPoint.Web.Spread.ListItem[2]; FarPoint.Web.Spread.ListItem item = new FarPoint.Web.Spread.ListItem(); item.Text = "A"; item.Value = "1"; items[0] = item; item = new FarPoint.Web.Spread.ListItem(); item.Text = "B"; item.Value = "2"; items[1] = item; cb.ListItems = items; cb.CssClass = "CssStyle1"; FpSpread1.ActiveSheetView.Cells[0, 0].CellType = cb;
Dim cb As New FarPoint.Web.Spread.ComboBoxCellType Dim items(2) As FarPoint.Web.Spread.ListItem Dim item As New FarPoint.Web.Spread.ListItem item.Text = "A" item.Value = "1" items(0) = item item = New FarPoint.Web.Spread.ListItem item.Text = "B" item.Value = "2" items(1) = item cb.ListItems = items cb.CssClass = "CssStyle1" FpSpread1.ActiveSheetView.Cells(0, 0).CellType = cb