您好,这是我们产品的设计,与Excel的行为保持一致的。
如果想要实现可以参考下方代码:
var height = 0;
sheet.bind(GC.Spread.Sheets.Events.ClipboardChanged, function (sender, args) {
var row = args.sheet.Jl;
var col = args.sheet.Kl;
height = sheet.getRowHeight(row);
console.log("ClipboardChanged.");
});
sheet.bind(GC.Spread.Sheets.Events.ClipboardPasted, function (sender, args) {
var row = args.sheet.Jl;
var col = args.sheet.Kl;
sheet.setRowHeight(row,height);
console.log("ClipboardChanged.");
}); |