AODL.Document.Export.Html.HTMLContentBuilder.GetListItemAsHtml C# (CSharp) Метод

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

Gets the list item as HTML.
public GetListItemAsHtml ( ListItem listItem ) : string
listItem AODL.Document.Content.Text.ListItem The list item.
Результат string
		public string GetListItemAsHtml(ListItem listItem)
		{
			string html					= "<li>\n";

			try
			{
				if (listItem != null)
				{
					if (listItem.Content != null)
					{
						html			+= this.GetIContentCollectionAsHtml(listItem.Content);
					}
				}
			}
			catch(Exception ex)
			{
				throw new AODLException("Exception while trying to build a HTML string from a ListItem object.", ex);
			}

			if (!html.Equals("<li>\n"))
				html				+= "</li>\n";
			else
				html				= "";

			return html;
		}