[英]Get style of excel cell with Epplus
有什么办法可以通过打开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;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.