Example #1
0
        public void TestSetGetFontSize()
        {
            CT_RPr rpr = ctRun.AddNewRPr();

            rpr.AddNewSz().val = 14;

            XWPFRun run = new XWPFRun(ctRun, p);

            Assert.AreEqual(7, run.GetFontSize());

            run.SetFontSize(24);
            Assert.AreEqual(48, (int)rpr.sz.val);
        }
Example #2
0
        public void TestSetGetFontSize()
        {
            CT_RPr rpr = ctRun.AddNewRPr();
            rpr.AddNewSz().val = 14;

            XWPFRun run = new XWPFRun(ctRun, p);
            Assert.AreEqual(7, run.FontSize);

            run.SetFontSize(24);
            Assert.AreEqual(48, (int)rpr.sz.val);
        }