ICellStyle style1 = workbook.CreateCellStyle();
style1.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
style1.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
style1.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
style1.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
IFont font = workbook.CreateFont();
font = workbook.CreateFont();
font.FontHeightInPoints = 12;
font.Boldweight = (short)NPOI.SS.UserModel.FontBoldWeight.Bold;
font.FontName = "Wingdings 2";
style1.SetFont(font);//HEAD 样式
row = sheet.GetRow(22);
cell = row.CreateCell(2);
cell.SetCellValue("\u0052 是");//checkbox u0052勾选 //u00A3代表未打钩的选择框
cell.CellStyle = style1;
//Wingdings 2
转载记录