public string GetHtmlStyle()
{
string style = "style=\"";
if (this.Italic != null)
if (this.Italic != "normal")
style += "font-style: italic; ";
if (this.Bold != null)
style += "font-weight: "+this.Bold+"; ";
if (this.Underline != null)
style += "text-decoration: underline; ";
if (this.TextLineThrough != null)
style += "text-decoration: line-through; ";
if (this.FontName != null)
style += "font-family: "+FontFamilies.HtmlFont(this.FontName)+"; ";
if (this.FontSize != null)
style += "font-size: "+FontFamilies.PtToPx(this.FontSize)+"; ";
if (this.FontColor != null)
style += "color: "+this.FontColor+"; ";
if (this.BackgroundColor != null)
style += "background-color: "+this.BackgroundColor+"; ";
if (!style.EndsWith("; "))
style = "";
else
style += "\"";
return style;
}