作成日: 2025/04/01 最終更新日: 2025/04/01
文書種別
使用方法
詳細
◎サンプルコード(VB)
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim sheet = FpSpread1.ActiveSheet
sheet.RowCount = 5
sheet.ColumnCount = 3
Dim comboCell As New ComboBoxCellType()
comboCell.Items = New String() {"A", "B", "C"}
comboCell.EditorValue = EditorValue.String
comboCell.DropDownOptions = FarPoint.Win.DropDownOptions.Button
sheet.Cells(0, 0).CellType = comboCell
End Sub
◎サンプルコード(C#)
private void Form1_Load(object sender, EventArgs e)
{
var sheet = fpSpread1.ActiveSheet;
sheet.RowCount = 5;
sheet.ColumnCount = 3;
ComboBoxCellType comboCell = new ComboBoxCellType();
comboCell.Items = new string[] { "A", "B", "C" };
comboCell.EditorValue = EditorValue.String;
comboCell.DropDownOptions = FarPoint.Win.DropDownOptions.Button;
sheet.Cells[0, 0].CellType = comboCell;
}
<実行イメージ>