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

GetHtml() public method

Return the content as Html string
public GetHtml ( ) : string
return string
		public string GetHtml()
		{
			try
			{
				string html		= this.GetAnchor()+"<p ";
				string style	= this.GetHtmlStyle(this.StyleName);
				
				if (style.Length > 0)
					html		+= style;
				html			+= ">\n";

				//Check numbering
				string number	= this.GetHeadingNumber();
				if (number.Length > 0)
					html		+= number+"&nbsp;&nbsp;";

				foreach(IText itext in this.TextContent)
					if (itext is IHtml)
						html	+= ((IHtml)itext).GetHtml();

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

				return html;
			}
			catch(Exception)
			{
			}

			return "";
		}