用Epplus获得excel单元格的样式
有没有什么办法来打开特定的单元格与开放的XML SDK和epplus?
目前我正在以如下方式获得价值:
currentWorksheet.Cells[nRowId, 3].Text.Trim();
为了这个,我想如果有背景颜色和边框。
尝试
currentWorksheet.Cells[nRowId, 3].Style;
也:
currentWorksheet.Cells[nRowId, 3].Style.Fill.BackgroundColor; currentWorksheet.Cells[nRowId, 3].Style.Border;