Esempio n. 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);
        }
Esempio n. 2
0
        //rowspan

        public CRow(string Id)
        {
            this.Id = Id;

            this.Align  = CHtmlParser.GetDefaultHAlign();
            this.VAlign = CHtmlParser.GetDefaultVAlign();

            this.mColumns = new Columns();
        }
Esempio n. 3
0
        public Column(string Id)
        {
            this.Id = Id;

            this.Align  = CHtmlParser.GetDefaultHAlign();
            this.VAlign = CHtmlParser.GetDefaultVAlign();
            this.Width  = 0;

            this.mValues = new Values();
        }
Esempio n. 4
0
 private VAlign OverwriteVAlign(VAlign AOld, VAlign ANew)
 {
     if (ANew == CHtmlParser.GetDefaultVAlign())
     {
         return(AOld);
     }
     else
     {
         return(ANew);
     }
 }
Esempio n. 5
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();
        }
Esempio n. 6
0
        public Column(string Id, int Width)
        {
            this.Id = Id;

            this.Align           = CHtmlParser.GetDefaultHAlign();
            this.VAlign          = CHtmlParser.GetDefaultVAlign();
            this.Width           = Width;
            this.ColSpan         = 1;
            this.WidthBeforeSpan = 0;

            this.mValues = new Values();
        }