GrapeCity.Win.PluginInputMan アセンブリ > GrapeCity.Win.Spread.InputMan.CellType 名前空間 > GcComboBoxCellType クラス : DropDownStyle プロパティ |
'Declaration
Public Property DropDownStyle As ComboBoxStyle
public ComboBoxStyle DropDownStyle {get; set;}
<b>DropDownStyle</b>プロパティを<b>DropDownList</b>に設定した場合は、リストに含まれる有効な値のみを選択できます。<b>DropDownStyle</b>プロパティを<see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType.DropDown" />に設定した場合は、<see cref="T:GrapeCity.Win.Spread.InputMan.CellType.GcComboBox" />の編集領域に任意の値を入力できます。この場合、<see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType.AutoCompleteMode" />の<b>Append</b>値は<b>AutoCompleteMode</b>の<see cref="F:System.Windows.Forms.AutoCompleteMode.SuggestAppend" />値と同じように機能します。
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType(); gccombo.DropDownStyle = ComboBoxStyle.DropDownList; gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Gruyere" }); fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType() gccombo.DropDownStyle = ComboBoxStyle.DropDownList gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Gruyere"}) FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo