Exemple #1
0
        public static HtmlBorder GetDefaultBorder()
        {
            HtmlBorder b = new HtmlBorder();

            b.Color = Color.Transparent;
            b.Style = HtmlBorderStyle.none;
            b.Width = 4;

            return(b);
        }
Exemple #2
0
        public HtmlStyle()
        {
            this.mFont            = CHtmlParser.GetDefaultFont();
            this.mFormat          = CHtmlParser.GetDefaultFormat();
            this.mBackgroundColor = CHtmlParser.GetDefaultBackgroundColor();
            this.mColor           = CHtmlParser.GetDefaultColor();

            this.mBorderTop    = CHtmlParser.GetDefaultBorder();
            this.mBorderRight  = CHtmlParser.GetDefaultBorder();
            this.mBorderBottom = CHtmlParser.GetDefaultBorder();
            this.mBorderLeft   = CHtmlParser.GetDefaultBorder();
        }
Exemple #3
0
 public void AddBorders(HtmlBorder BorderTop, HtmlBorder BorderRight,
                        HtmlBorder BorderBottom, HtmlBorder BorderLeft)
 {
     if (BorderTop != null)
     {
         mBorderTop = BorderTop;
     }
     if (BorderRight != null)
     {
         mBorderRight = BorderRight;
     }
     if (BorderBottom != null)
     {
         mBorderBottom = BorderBottom;
     }
     if (BorderLeft != null)
     {
         mBorderLeft = BorderLeft;
     }
 }