GC.Spread.Sheets 名前空間 > Commands タイプ : autoFitColumn フィールド |
true
、それ以外の場合はfalse
。Javascript (Usage) | |
---|---|
var value; // Type: autoFitColumn value = GC.Spread.Sheets.Commands.autoFitColumn; |
Javascript (Specification) | |
---|---|
var autoFitColumn : autoFitColumn; |
//Add data for (var col = 1; col < 6; col++) { for (var row = 2; row < 11; row++) { activeSheet.setValue(row, col, row + col); } } $("#button1").click(function () { var columns = [ { col: 3 } ]; spread.options.allowUndo = true; spread.commandManager().execute({cmd: "autoFitColumn", sheetName: "Sheet1", columns: columns, isRowHeader: false, autoFitType: GC.Spread.Sheets.AutoFitType.cell}); }); <input type="button" id="button1" value="button1"/>