UnknownTextContent represent an unknown text element.
Inheritance: IText
		/// <summary>
		/// Gets the unknow text content as HTML.
		/// Maybe it's a bibliographic index or something else.
		/// The method will try to find text that could be displayed.
		/// </summary>
		/// <param name="unknownTextContent">Content of the unknown text.</param>
		/// <returns></returns>
		public string GetUnknowTextContentAsHtml(UnknownTextContent unknownTextContent)
		{
			string html					= "";

			try
			{
				if (unknownTextContent != null)
				{
					if (unknownTextContent.Node != null)
						html			+= this.ReplaceControlNodes(unknownTextContent.Node.InnerText);
				}
			}
			catch(Exception ex)
			{
				throw new AODLException("Error rendering unknown text content as html", ex);
			}

			return html;
		}
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the unknow text content as HTML.
        /// Maybe it's a bibliographic index or something else.
        /// The method will try to find text that could be displayed.
        /// </summary>
        /// <param name="unknownTextContent">Content of the unknown text.</param>
        /// <returns></returns>
        public string GetUnknowTextContentAsHtml(UnknownTextContent unknownTextContent)
        {
            string html					= "";

            try
            {
                if(unknownTextContent != null)
                {
                    if(unknownTextContent.Node != null)
                        html			+= this.ReplaceControlNodes(unknownTextContent.Node.InnerText);
                }
            }
            catch(Exception ex)
            {
            }

            return html;
        }