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


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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

GcComboBoxCellType Class
GcComboBoxCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.