SpreadJS製品ヘルプ
CheckBox コンストラクタ
GC.Spread.Sheets.CellTypes 名前空間 > CheckBox クラス : CheckBox コンストラクタ
チェックボックス型のセルを表します。
シンタックス
var instance = new GC.Spread.Sheets.CellTypes.CheckBox();
function CheckBox() : CheckBox;
使用例
次のサンプルコードは、チェックボックス型セルを作成します。
var cellType1 = new GC.Spread.Sheets.CellTypes.CheckBox();
cellType1.caption("caption");
cellType1.textTrue("true");
cellType1.textFalse("false");
cellType1.textIndeterminate("indeterminate");
cellType1.textAlign(GC.Spread.Sheets.CellTypes.CheckBoxTextAlign.bottom);
cellType1.isThreeState(true);
activeSheet.getCell(1, 1).cellType(cellType1);
var cellType1 = new GC.Spread.Sheets.CellTypes.CheckBox();
cellType1.caption("caption");
cellType1.textTrue("true");
cellType1.textFalse("false");
cellType1.textIndeterminate("indeterminate");
cellType1.textAlign(GC.Spread.Sheets.CellTypes.CheckBoxTextAlign.bottom);
cellType1.isThreeState(true);
activeSheet.getCell(1, 1).cellType(cellType1);
関連トピック

参照

CheckBox クラス