public string GetHtmlStyle() { string style = "style=\""; if (this.BackgroundColor != null) style += "background-color: "+this.BackgroundColor+"; "; if (!style.EndsWith("; ")) style = ""; else style += "\""; return style; }