Spread Windows Forms 12.0 Product Documentation
Items Property (GcComboBoxCellType)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > GcComboBoxCellType Class : Items Property
Gets the item collection.
Syntax
'Declaration
 
Public Property Items As ListItemCollectionInfo
'Usage
 
Dim instance As GcComboBoxCellType
Dim value As ListItemCollectionInfo
 
instance.Items = value
 
value = instance.Items
public ListItemCollectionInfo Items {get; set;}

Property Value

A ListItemCollectionInfo that represents the collection of the combo items.
Remarks
This property allows you to obtain a reference to the list of items that are currently stored in GcComboBox. This reference allows you to add items, remove items, and get the number of items in the collection.
Example
This example creates a GcComboBox cell.
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
See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members