FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > ComboBoxCellType Class : ListItems Property |
'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
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