C# 使用Epplus获取excel单元格的样式

C# 使用Epplus获取excel单元格的样式,c#,excel,openxml-sdk,epplus,C#,Excel,Openxml Sdk,Epplus,有没有办法通过OpenXMLSDK和ePlus获得特定单元格的样式 目前,我通过以下方式获取值: currentWorksheet.Cells[nRowId, 3].Text.Trim(); 作为说明,我想知道是否有背景色和边框。试试看 currentWorksheet.Cells[nRowId, 3].Style; 此外: 试一试 此外: currentWorksheet.Cells[nRowId, 3].Style.Fill.BackgroundColor; currentWorkshe

有没有办法通过OpenXMLSDK和ePlus获得特定单元格的样式

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

currentWorksheet.Cells[nRowId, 3].Text.Trim();
作为说明,我想知道是否有背景色和边框。

试试看

currentWorksheet.Cells[nRowId, 3].Style;
此外:

试一试

此外:

currentWorksheet.Cells[nRowId, 3].Style.Fill.BackgroundColor;
currentWorksheet.Cells[nRowId, 3].Style.Border;