2013-02-07 81 views
0

有没有什么方法可以通过打开的xml sdk和epplus获取特定单元格的样式?使用Epplus获取excel单元格样式

目前,我通过以下方式获得的值:

currentWorksheet.Cells[nRowId, 3].Text.Trim(); 

在adittion这个我想如果有一个背景颜色和边框。

回答

4

尝试

currentWorksheet.Cells[nRowId, 3].Style; 

另外:

currentWorksheet.Cells[nRowId, 3].Style.Fill.BackgroundColor; 
currentWorksheet.Cells[nRowId, 3].Style.Border; 
相关问题