この例では、アクティブシートのColumnオブジェクトとButtonCellTypeオブジェクトを作成します。ButtonCellTypeオブジェクトをColumnオブジェクトのCellTypeプロパティに割り当てて、アクティブシートの先頭列のすべてのセルをコマンドボタン型セルに設定します。
FarPoint.Web.Spread.Column mycol;
FarPoint.Web.Spread.ButtonCellType mycell = new FarPoint.Web.Spread.ButtonCellType();
mycol = FpSpread1.ActiveSheetView.Columns[0];
mycol.CellType = mycell;
Dim mycol As FarPoint.Web.Spread.Column
Dim mycell As New FarPoint.Web.Spread.ButtonCellType()
mycol = FpSpread1.ActiveSheetView.Columns(0)
mycol.CellType = mycell