AODL.Document.Styles.Properties.CellProperties.GetHtmlStyle C# (CSharp) Method

GetHtmlStyle() public method

Get the css style fragement
public GetHtmlStyle ( ) : string
return string
		public string GetHtmlStyle()
		{
			string style		= "style=\"";

			if (this.BackgroundColor != null)
				if (this.BackgroundColor.ToLower() != "transparent")
					style	+= "background-color: "+this.BackgroundColor+"; ";
				else
					style	+= "background-color: #FFFFFF; ";
			else
				style	+= "background-color: #FFFFFF; ";

			if (!style.EndsWith("; "))
				style	= "";
			else
				style	+= "\"";

			return style;
		}