GcSpread.Sheets Namespace > Sheet type : addTable Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: SheetTable value = instance.addTable(name, row, column, rowCount, columnCount, tableStyle);
function addTable( name : string, row : number, column : number, rowCount : number, columnCount : number, tableStyle : TableStyle ) : SheetTable;
activeSheet.addTable("Table1", 0, 0, 3, 3, GcSpread.Sheets.TableStyles.dark1()); activeSheet.getCell(0,0).text("Name"); activeSheet.getCell(0,1).text("Value"); activeSheet.getCell(0,2).text("T/F"); activeSheet.getCell(1,0).text("AW"); activeSheet.getCell(1,1).text("5"); activeSheet.getCell(1,2).text("T");