NPOI 设置样式为粗体
CellStyle style = hssfworkbook.CreateCellStyle(); Font f = hssfworkbook.CreateFont(); f.Boldweight = (short)FontBoldWeight.BOLD; style.SetFont(f); sheet1.GetRow(rowIdx).GetCell(colIdx).CellStyle = style;
CellStyle style = hssfworkbook.CreateCellStyle(); Font f = hssfworkbook.CreateFont(); f.Boldweight = (short)FontBoldWeight.BOLD; style.SetFont(f); sheet1.GetRow(rowIdx).GetCell(colIdx).CellStyle = style;