'Usage Dim instance As ListItemCollectionInfo Dim text As String Dim value As Integer value = instance.Add(text)
Parameters
- text
- A System.String value that represents ListItemInfo.Text of ListItemInfo.
Return Value
The index of the added item.
'Usage Dim instance As ListItemCollectionInfo Dim text As String Dim value As Integer value = instance.Add(text)
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType(); gccombo.Items.Add("Gouda"); gccombo.Items.Add("Swiss"); gccombo.Items.Add("Brie"); gccombo.Items[0].BackColor = Color.Beige; gccombo.Items[1].BackColor = Color.Cornsilk; gccombo.Items[2].BackColor = Color.PeachPuff; fpSpread1.Sheets[0].Cells[0, 0].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType() gccombo.Items.Add("Gouda") gccombo.Items.Add("Swiss") gccombo.Items.Add("Brie") gccombo.Items(0).BackColor = Color.Beige gccombo.Items(1).BackColor = Color.Cornsilk gccombo.Items(2).BackColor = Color.PeachPuff FpSpread1.Sheets(0).Cells(0, 0).CellType = gccombo