大佬好,我想问一个问题
我有一行背景颜色还有link样式都设置好的行,下面追加的行都是用copyTo复制的。
curSheet.copyTo(2,0,3,0,1,10,spreadNS.CopyToOptions.all);
然后我更改了其中一行的HyperLink的Text
curSheet.getCellType(3,7)._text = "45";
resumePaint执行后,所有的复制了样式例子行的行全都变成了45,这是怎么回事儿呢??
下面是代码‘
spread.suspendPaint()
var h = new GC.Spread.Sheets.CellTypes.HyperLink();
h.text("0.0");
h.linkColor("blue");
h.visitedLinkColor("blue");
sheet.setCellType(2, 7, h, GC.Spread.Sheets.SheetArea.viewport);
sheet.copyTo(2,0,3,0,1,10,GC.Spread.Sheets.CopyToOptions.all);
sheet.copyTo(2,0,4,0,1,10,GC.Spread.Sheets.CopyToOptions.all);
sheet.copyTo(2,0,5,0,1,10,GC.Spread.Sheets.CopyToOptions.all);
sheet.getCellType(3,7)._text = "45";
spread.resumePaint()
|