Beispiel #1
0
        public void PrintBr(Graphics g, ref int y)
        {
            Font f = (styCur != null) ? styCur.Font : CHtmlParser.GetDefaultFont();

            SizeF sizef = g.MeasureString(" ", f);

            y += Convert.ToInt32(sizef.Height);
        }
Beispiel #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();
        }