public Stylesheet() { DefaultFont=new FontDesc("Times New Roman", 12, false, false, false); TagFont=new FontDesc("Verdana", 9, false, false, false); DefaultPadding=new Box(0, 0, 0, 15); BindStyles(new NameTable()); }
public void Cascade(Box baseBox) { top.Cascade(baseBox.top); right.Cascade(baseBox.right); bottom.Cascade(baseBox.bottom); left.Cascade(baseBox.left); }
protected Style(Style s) { this.desc=new FontDesc(s.desc); this.Margin=new Box(s.Margin); this.Padding=new Box(s.Padding); this.Empty=s.Empty; this.Pre=s.Pre; }
public Box(Box o) : this(o.top, o.right, o.bottom, o.left) { }