AODL.Document.TextDocuments.DocumentMetadata.GetHtml C# (CSharp) Метод

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

Return the content as Html string
public GetHtml ( ) : string
Результат string
		public string GetHtml()
		{
			string html		= "";
			string autor	= "";
			string title	= "";

			if (this.InitialCreator != null)
				if (this.InitialCreator.Length > 0)
				autor	= this.InitialCreator;
			
			if (autor.Length == 0)
				if (this.Creator != null)
				if (this.Creator.Length > 0)
				autor	= this.Creator;

			if (autor.Length == 0)
				autor			= "unknown";

			if (this.Title != null)
				if (this.Title.Length > 0)
				title	= this.Title;

			if (title.Length == 0)
				title		= "Untitled";

			html		+= "<title>"+title+"</title>\n";
			html		+= "<meta content=\""+autor+"\" name=\"Author\">\n";
			html		+= "<meta content=\""+autor+"\" name=\"Publisher\">\n";
			html		+= "<meta content=\""+autor+"\" name=\"Copyright\">\n";
			if (this.Keywords != String.Empty)
				if (this.Keywords.Length > 0)
				html		+= "<meta content=\""+this.Keywords+"\" name=\"Keywords\">\n";
			if (this.Subject != String.Empty)
				if (this.Subject.Length > 0)
				html		+= "<meta content=\""+this.Subject+"\" name=\"Description\">\n";
			if (this.LastModified != String.Empty)
				if (this.LastModified.Length > 0)
				html		+= "<meta content=\""+this.LastModified+"\" name=\"Date\">\n";

			return html;
		}