ComboBoxCellType cbCell = new ComboBoxCellType()
{
Items = new string[] { "要素1", "要素2", "要素3" },
Values = new string[] { "1", "2", "3" },
UseValue = true,
ShowButton = true
};
FpSpread1.Cells[0, 1].CellType = cbCell;
//コンボボックス型セルに値を設定します
FpSpread1.Cells[0, 1].Value = 2;
Dim cbCell As New ComboBoxCellType() With {
.Items = New String() {"要素1", "要素2", "要素3"},
.Values = New String() {"1", "2", "3"},
.UseValue = True
.ShowButton = True
}
FpSpread1.Cells(0, 1).CellType = cbCell
'コンボボックス型セルに値を設定します
FpSpread1.Cells(0, 1).Value = 2