Пример #1
0
        public void AddTest()
        {
            Style style = new Style();
            StyleItemCollection target = new StyleItemCollection(style);

            StyleItemBase item = new BorderStyle();

            target.Add(item);

            Assert.AreEqual(1, target.Count);

            item = new Scryber.Styles.FillStyle();
            target.Add(item);
            Assert.AreEqual(2, target.Count);
        }
Пример #2
0
        private StyleItemCollection GetStdCollection()
        {
            Style style             = new Style();
            StyleItemCollection col = new StyleItemCollection(style);
            BackgroundStyle     bg  = new BackgroundStyle();

            bg.Color = PDFColors.Red;
            col.Add(bg);

            BorderStyle bor = new BorderStyle();

            bor.Color = PDFColors.Green;
            col.Add(bor);

            Scryber.Styles.FontStyle fnt = new Scryber.Styles.FontStyle();
            fnt.FontFamily = (PDFFontSelector)"Symbol";
            col.Add(fnt);

            return(col);
        }