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

GetHtml() public method

Return the content as Html string
public GetHtml ( ) : string
return string
		public string GetHtml()
		{
			string html			= null;

			if (this.ListType == ListStyles.Bullet)
				html			= "<ul>\n";
			else if (this.ListType == ListStyles.Number)
				html			= "<ol>\n";
			
			foreach(IContent content in this.Content)
				if (content is IHtml)
					html		+= ((IHtml)content).GetHtml();

			if (this.ListType == ListStyles.Bullet)
				html			+= "</ul>\n";
			else if (this.ListType == ListStyles.Number)
				html			+= "</ol>\n";
			//html				+= "</ul>\n";

			return html;
		}