CellStyle style = hssfworkbook.CreateCellStyle(); Font f = hssfworkbook.CreateFont(); f.Boldweight = (short)FontBoldWeight.BOLD; style.SetFont(f); sheet1.GetRow(rowIdx).GetCell(colIdx).CellStyle = style;
转载于:https://www.cnblogs.com/a14907/p/6424010.html