Example #1
0
        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());
        }
Example #2
0
 public void Cascade(Box baseBox)
 {
     top.Cascade(baseBox.top);
     right.Cascade(baseBox.right);
     bottom.Cascade(baseBox.bottom);
     left.Cascade(baseBox.left);
 }
Example #3
0
 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;
 }
Example #4
0
 public Box(Box o)
     : this(o.top, o.right, o.bottom, o.left)
 {
 }