你好,可以给对应的区域设置对应的合并方式:
参考代码:
- var range = new GC.Spread.Sheets.Range(-1, 0, -1, 2);
- sheet.autoMerge(range, GC.Spread.Sheets.AutoMerge.AutoMergeDirection.column, GC.Spread.Sheets.AutoMerge.AutoMergeMode.restricted);
- var range = new GC.Spread.Sheets.Range(-1, 2, -1, 1);
- sheet.autoMerge(range, GC.Spread.Sheets.AutoMerge.AutoMergeDirection.column, GC.Spread.Sheets.AutoMerge.AutoMergeMode.restricted);
复制代码
|