|
@@ -70,6 +70,14 @@ var sheetCommonObj = {
|
|
|
sheet.resumeEvent();
|
|
|
sheet.resumePaint();
|
|
|
},
|
|
|
+ cleanData: function (sheet, setting, rowCount) {
|
|
|
+ sheet.suspendPaint();
|
|
|
+ sheet.suspendEvent();
|
|
|
+ sheet.clear(-1, 0, -1, setting.header.length, GC.Spread.Sheets.SheetArea.viewport, GC.Spread.Sheets.StorageType.data);
|
|
|
+ if (rowCount > 0) sheet.setRowCount(rowCount);
|
|
|
+ sheet.resumeEvent();
|
|
|
+ sheet.resumePaint();
|
|
|
+ },
|
|
|
setAreaAlign: function(area, hAlign, vAlign){
|
|
|
if (!(hAlign) || hAlign === "left") {
|
|
|
area.hAlign(GC.Spread.Sheets.HorizontalAlign.left);
|