public static HtmlBorder GetDefaultBorder() { HtmlBorder b = new HtmlBorder(); b.Color = Color.Transparent; b.Style = HtmlBorderStyle.none; b.Width = 4; return(b); }
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 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; } }