//WordWrap Column
sheet.getCell(2, 4).wordWrap(true).vAlign($.wijmo.wijspread.VerticalAlign.top);
sheet.getCell(4, 4).wordWrap(true).vAlign($.wijmo.wijspread.VerticalAlign.center);
sheet.getCell(6, 4).wordWrap(true).vAlign($.wijmo.wijspread.VerticalAlign.bottom);
sheet.getCell(7, 4).wordWrap(true).value("中华前程无限美\r\n中华前程无限美\r\n中华前程无限美\r\n中华前程无限美\r\n中华前程无限美\r\n");
sheet.autoFitColumn(4);
sheet.autoFitRow(2);
sheet.autoFitRow(4);
sheet.autoFitRow(6);
sheet.autoFitRow(7);
经过测试发现,只有把sheet.autoFitColumn(4);写在autoFitRow前面,显示才能正常 |