【发布时间】:2020-11-26 13:12:58
【问题描述】:
在 EPPlus 扩展中,如果我需要为 A1 到 C1 等一系列单元格设置样式,我将使用以下内容
ws.Cells["A1:C1"].Style.Font.Bold = true;
仅使用数字的等效项是什么?
【问题讨论】:
-
EPPlus 是使用
Column[]还是Row[]?
在 EPPlus 扩展中,如果我需要为 A1 到 C1 等一系列单元格设置样式,我将使用以下内容
ws.Cells["A1:C1"].Style.Font.Bold = true;
仅使用数字的等效项是什么?
【问题讨论】:
Column[] 还是Row[]?
Cells 有一个重载,可以让您像这样执行[FromRow, FromCol, ToRow, ToCol]:
ws.Cells[1, 1, 1, 3].Style.Font.Bold = true;
【讨论】: