Example #1
0
        public override void SetCellStyles(HSSFWorkbook workBook)
        {
            base.SetCellStyles(workBook);
            ICellStyle cellStyle = SetCellStyle(workBook, SetFont(workBook, FontBoldWeight.NORMAL));

            //单元格边框
            cellStyle.BorderBottom = BorderStyle.THIN;
            cellStyle.BorderLeft   = BorderStyle.THIN;
            cellStyle.BorderRight  = BorderStyle.THIN;
            cellStyle.BorderTop    = BorderStyle.THIN;

            CellStyle.Add("BorderStyle", cellStyle);
        }