Beispiel #1
0
        public void TestDefaultColumnStyle()
        {
            HSSFWorkbook wb = new HSSFWorkbook();

            NPOI.SS.UserModel.CellStyle style = wb.CreateCellStyle();
            NPOI.SS.UserModel.Sheet     s     = wb.CreateSheet();
            s.SetDefaultColumnStyle((short)0, style);
            Row  r = s.CreateRow(0);
            Cell c = r.CreateCell(0);

            Assert.AreEqual(style.Index, c.CellStyle.Index, "style should Match");
        }