好的,我发代码示例给您:
- var spread = GC.Spread.Sheets.findControl("ss");
- var sheet = spread.getActiveSheet();
- sheet.setColumnWidth(0, 200)
- sheet.setRowHeight(0, 60, GC.Spread.Sheets.SheetArea.colHeader);
- sheet.setValue(0,0,"一二\n三四五六七八九十", GC.Spread.Sheets.SheetArea.colHeader);
- var style1 = new GC.Spread.Sheets.Style();
- style1.wordWrap = true;
- sheet.setStyle(0,0,style1, GC.Spread.Sheets.SheetArea.colHeader);
复制代码 |