Epplus细胞范围数字
在EPPlus扩展中,如果我需要为一系列单元格(如A1到C1)设置样式,我将使用以下内容
ws.Cells["A1:C1"].Style.Font.Bold = true;
这只使用数字相当于什么?
Cells
有一个重载,可以让你这样做[FromRow, FromCol, ToRow, ToCol]
:
ws.Cells[1, 1, 1, 3].Style.Font.Bold = true;
在EPPlus扩展中,如果我需要为一系列单元格(如A1到C1)设置样式,我将使用以下内容
ws.Cells["A1:C1"].Style.Font.Bold = true;
这只使用数字相当于什么?
Cells
有一个重载,可以让你这样做[FromRow, FromCol, ToRow, ToCol]
:
ws.Cells[1, 1, 1, 3].Style.Font.Bold = true;