请问被合并过的的单元格会丢失边框,要怎么处理?
let styleCompare = new GC.Spread.Sheets.Style();
styleCompare.borderLeft = new GC.Spread.Sheets.LineBorder("red", GC.Spread.Sheets.LineStyle.medium);
styleCompare.borderTop = new GC.Spread.Sheets.LineBorder("red", GC.Spread.Sheets.LineStyle.medium);
styleCompare.borderRight = new GC.Spread.Sheets.LineBorder("red", GC.Spread.Sheets.LineStyle.medium);
styleCompare.borderBottom = new GC.Spread.Sheets.LineBorder("red", GC.Spread.Sheets.LineStyle.medium);
//获取坐标13,14的cell,标记为红色边框
sheet.getCell(13, 14).setStyle(styleCompare);
如果坐标13,14的cell正好是被合并过的单元格,边框会丢失一部分,如图
|