ICellStyle cellStyle = workbook.CreateCellStyle();
cellStyle.FillPattern = FillPattern.SolidForeground;
cellStyle.FillForegroundColor = NPOI.HSSF.Util.HSSFColor.Yellow.Index; //单元格背景颜色
cellStyle.VerticalAlignment = VerticalAlignment.Center;//垂直居中
C#NPOI 垂直居中
猜你喜欢
转载自blog.csdn.net/qq_21275565/article/details/105120175
今日推荐
周排行