Epplus单元格范围数字化

10
在EPPlus扩展中,如果我需要为一系列单元格(例如A1到C1)设置样式,我将使用以下代码。
ws.Cells["A1:C1"].Style.Font.Bold = true;

使用数字,这个有什么相应的等价物吗?


EPPlus使用Column[]还是Row[] - BruceWayne
1个回答

26

Cells有一个重载函数可以让你像这样使用[FromRow, FromCol, ToRow, ToCol]

ws.Cells[1, 1, 1, 3].Style.Font.Bold = true;

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接