Exemplo n.º 1
0
        public void TestFontName()
        {
            CT_Font ctFont = new CT_Font();
            CT_FontName fname = ctFont.AddNewName();
            fname.val = ("Arial");
            ctFont.SetNameArray(0, fname);

            XSSFFont xssfFont = new XSSFFont(ctFont);
            Assert.AreEqual("Arial", xssfFont.FontName);

            xssfFont.FontName = ("Courier");
            Assert.AreEqual("Courier", ctFont.GetNameArray(0).val);
        }