Esempio n. 1
0
        public void TestGetSetVerticalAlignment()
        {
            Assert.AreEqual(VerticalAlignment.Bottom, cellStyle.GetVerticalAlignmentEnum());
            Assert.AreEqual(VerticalAlignment.Bottom, cellStyle.VerticalAlignment);
            Assert.IsTrue(!cellStyle.GetCellAlignment().GetCTCellAlignment().verticalSpecified);

            cellStyle.VerticalAlignment = (VerticalAlignment.Center);
            Assert.AreEqual(VerticalAlignment.Center, cellStyle.VerticalAlignment);
            Assert.AreEqual(VerticalAlignment.Center, cellStyle.GetVerticalAlignmentEnum());
            Assert.AreEqual(ST_VerticalAlignment.center, cellStyle.GetCellAlignment().GetCTCellAlignment().vertical);

            cellStyle.VerticalAlignment = VerticalAlignment.Justify;
            Assert.AreEqual(VerticalAlignment.Justify, cellStyle.VerticalAlignment);
            Assert.AreEqual(VerticalAlignment.Justify, cellStyle.GetVerticalAlignmentEnum());
            Assert.AreEqual(ST_VerticalAlignment.justify, cellStyle.GetCellAlignment().GetCTCellAlignment().vertical);
        }
Esempio n. 2
0
        public void TestGetSetVerticalAlignment()
        {
            Assert.AreEqual(VerticalAlignment.BOTTOM, cellStyle.GetVerticalAlignmentEnum());
            Assert.AreEqual(VerticalAlignment.BOTTOM, cellStyle.VerticalAlignment);
            Assert.IsTrue(!cellStyle.GetCellAlignment().GetCTCellAlignment().verticalSpecified);

            cellStyle.VerticalAlignment = (VerticalAlignment.CENTER);
            Assert.AreEqual(VerticalAlignment.CENTER, cellStyle.VerticalAlignment);
            Assert.AreEqual(VerticalAlignment.CENTER, cellStyle.GetVerticalAlignmentEnum());
            Assert.AreEqual(ST_VerticalAlignment.center, cellStyle.GetCellAlignment().GetCTCellAlignment().vertical);

            cellStyle.VerticalAlignment = VerticalAlignment.JUSTIFY;
            Assert.AreEqual(VerticalAlignment.JUSTIFY, cellStyle.VerticalAlignment);
            Assert.AreEqual(VerticalAlignment.JUSTIFY, cellStyle.GetVerticalAlignmentEnum());
            Assert.AreEqual(ST_VerticalAlignment.justify, cellStyle.GetCellAlignment().GetCTCellAlignment().vertical);
        }