AODL.Document.Styles.Properties.ParagraphProperties.GetHtmlStyle C# (CSharp) Метод

GetHtmlStyle() публичный Метод

Get the css style fragement
public GetHtmlStyle ( ) : string
Результат string
		public string GetHtmlStyle()
		{
			string style		= "style=\"";

			if (this.Alignment != null)
				style	+= "text-align: "+this.Alignment+"; ";
			if (this.MarginLeft != null)
				style	+= "text-indent: "+this.MarginLeft+"; ";
			if (this.LineSpacing != null)
				style	+= "line-height: "+this.LineSpacing+"; ";
			if (this.Border != null && this.Padding == null)
				style	+= "border-width:1px; border-style:solid; padding: 0.5cm; ";
			if (this.Border != null && this.Padding != null)
				style	+= "border-width:1px; border-style:solid; padding:"+this.Padding+"; ";

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

			return style;
		}