GrapeCity SPREAD for Windows Forms 11.0J
ListSelectedItemStyle プロパティ


コントロールの選択されている項目の色スタイルを示すItemStyleInfo値を取得します。
構文
'Declaration
 
Public ReadOnly Property ListSelectedItemStyle As ItemStyleInfo
'使用法
 
Dim instance As GcComboBoxCellType
Dim value As ItemStyleInfo
 
value = instance.ListSelectedItemStyle
public ItemStyleInfo ListSelectedItemStyle {get;}

プロパティ値

ItemStyleInfo値。
解説
このプロパティは、選択されている項目の外観をカスタマイズするときに使用します。
次のサンプルコードは、ListSelectedItemStyleプロパティを設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;
gccombo.ListSelectedItemStyle.BackColor = Color.Red;
gccombo.Items.AddRange(new String[] { "Feta", "Havarti", "Swiss"});
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.ListSelectedItemStyle.BackColor = Color.Red
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
参照

GcComboBoxCellType クラス
GcComboBoxCellType メンバ

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.