public override string GetCSS() { string result = ""; if (BackgroundBrush is SolidBrush) { var s = ExportToHTML.GetColorAsString((BackgroundBrush as SolidBrush).Color); if (s != "") result += "background-color:" + s + ";"; } return result; }