AODL.Document.Content.Text.FormatedText.GetHtml C# (CSharp) Method

GetHtml() public method

Return the content as Html string
public GetHtml ( ) : string
return string
		public string GetHtml()
		{
			string style	= ((TextStyle)this.Style).TextProperties.GetHtmlStyle();
			string html		= "<span ";
			string text		= this.GetTextWithHtmlControl();

			if (style.Length > 0)
				html		= html + style + ">\n";
			else
				html		+= ">\n";

			if (text.Length > 0)
				html		+= text;

			html			+= "</span>\n";

			html			= this.GetSubOrSupStartTag()+html+this.GetSubOrSupEndTag();

			return html;
		}