ICellStyle style = workbook.CreateCellStyle();
style.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
style.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
style.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
style.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
IFont font = workbook.CreateFont();
font.FontHeightInPoints = 12;
//font.Boldweight = (short)NPOI.SS.UserModel.FontBoldWeight.Bold;
font.FontName = "宋体";
style.SetFont(font);//HEAD 样式
NPOI 字体
最新推荐文章于 2021-09-07 09:07:17 发布