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); }
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); }