GrapeCity SPREAD for Windows Forms 12.0J
SideButtons プロパティ (GcComboBoxCellType)


SideButtonのコレクションを取得または設定します。
構文
'Declaration
 
Public Property SideButtons As SideButtonCollectionInfo
'使用法
 
Dim instance As GcComboBoxCellType
Dim value As SideButtonCollectionInfo
 
instance.SideButtons = value
 
value = instance.SideButtons
public SideButtonCollectionInfo SideButtons {get; set;}

プロパティ値

SideButtonBaseのコレクションを示すSideButtonCollectionInfoインスタンス。
解説
SideButtonsにはいくつかの種類のサイドボタンを追加または削除できます。これにはDropDownButtonSpinButtonSideButtonSymbolButtonが含まれます。
次のサンプルコードは、サイドボタンを追加します。
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
参照

GcComboBoxCellType クラス
GcComboBoxCellType メンバ

 

 


Copyright © 2004 GrapeCity inc.