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


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

Property Value

A SideButtonCollectionInfo instance that indicates the SideButtonBase collection.
Remarks
The SideButtons can be added or removed. Buttons include DropDownButton, SpinButton, SideButton, and SymbolButton.
Example
This example adds a side button.
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();            
gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Swiss" });
gccombo.Items[0].BackColor = Color.Beige;
gccombo.Items[1].BackColor = Color.Cornsilk;
gccombo.Items[2].BackColor = Color.PeachPuff;
GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo testbutton1 = new GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo();
testbutton1.BackColor = Color.Green;
testbutton1.UseVisualStyleBackColor = false;
testbutton1.Behavior = GrapeCity.Win.Spread.InputMan.CellType.SideButtonBehavior.SpinUp;
gccombo.SideButtons.Add(testbutton1);
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
fpSpread1.Sheets[0].Columns[1].Width = 200;
fpSpread1.Sheets[0].Rows[1].Height = 40;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss"})
gccombo.Items(0).BackColor = Color.Beige
gccombo.Items(1).BackColor = Color.Cornsilk
gccombo.Items(2).BackColor = Color.PeachPuff
Dim testbutton1 As New GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo()
testbutton1.BackColor = Color.Green
testbutton1.UseVisualStyleBackColor = False
testbutton1.Behavior = GrapeCity.Win.Spread.InputMan.CellType.SideButtonBehavior.SpinUp
gccombo.SideButtons.Add(testbutton1)
fpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
fpSpread1.Sheets(0).Columns(1).Width = 200
fpSpread1.Sheets(0).Rows(1).Height = 40
See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members