/// <summary> /// 设置表格的单元格合并 /// </summary> /// <param name="sheet"></param> /// <param name="merges"></param> public static void SetSheetMerges(this SheetBuilder sheet, List <ExcelHelperMergeModel> merges) { if (merges != null) { foreach (var merge in merges) { sheet.MergeCells(merge.FirstRow, merge.FirstColumn, merge.TotalRows, merge.TotalColumns); } } }