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); }
//rowspan public CRow(string Id) { this.Id = Id; this.Align = CHtmlParser.GetDefaultHAlign(); this.VAlign = CHtmlParser.GetDefaultVAlign(); this.mColumns = new Columns(); }
public Column(string Id) { this.Id = Id; this.Align = CHtmlParser.GetDefaultHAlign(); this.VAlign = CHtmlParser.GetDefaultVAlign(); this.Width = 0; this.mValues = new Values(); }
private VAlign OverwriteVAlign(VAlign AOld, VAlign ANew) { if (ANew == CHtmlParser.GetDefaultVAlign()) { return(AOld); } else { return(ANew); } }
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(); }
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(); }