var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: number value = instance.getColumnCount(sheetArea);
パラメータ
- sheetArea
- シート領域。このパラメーターが指定されていない場合は、viewportにデフォルト設定されます。
戻り値の型
列数。
var instance = new GC.Spread.Sheets.Worksheet(name); var value; // Type: number value = instance.getColumnCount(sheetArea);
var count = activeSheet.getColumnCount(GC.Spread.Sheets.SheetArea.viewport);
alert(count);
for (var i = 0; i < sheet.getColumnCount(); i++) { sheet.setValue(1,i, i); } sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).backColor("Gray"); sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).foreColor("Red"); sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).formatter("0.00"); sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).borderBottom(new GC.Spread.Sheets.LineBorder("Green", GC.Spread.Sheets.LineStyle.thin)); sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).borderTop(new GC.Spread.Sheets.LineBorder("Green", GC.Spread.Sheets.LineStyle.thin)); sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).borderLeft(new GC.Spread.Sheets.LineBorder("Green", GC.Spread.Sheets.LineStyle.thin)); sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).borderRight( new GC.Spread.Sheets.LineBorder("Green", GC.Spread.Sheets.LineStyle.thin)); sheet.getRange(1, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).font("italic bold 12px/30px arial,sans-serif");