ICellStyle cellStyle = workbook.CreateCellStyle();
cellStyle.FillPattern = FillPattern.SolidForeground;
cellStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.Yellow.Index; //单元格背景颜色
cellStyle.VerticalAlignment = VerticalAlignment.Center;//垂直居中
C#NPOI 垂直居中
最新推荐文章于 2023-07-05 16:08:39 发布
2076

被折叠的 条评论
为什么被折叠?



