Represent a Footnote which could be a Foot- or a Endnote
Inheritance: IText, IHtml, ITextContainer
		/// <summary>
		/// Creates the footnote.
		/// </summary>
		/// <param name="document">The document.</param>
		/// <param name="node">The node.</param>
		/// <returns></returns>
		public Footnote CreateFootnote(IDocument document,XmlNode node)
		{
			try
			{
				Footnote fnote			= new Footnote(document);
				fnote.Node				= node.CloneNode(true);

				return fnote;
			}
			catch(Exception ex)
			{
				throw new AODLException("Exception while trying to create a Footnote.", ex);
			}
		}
Exemplo n.º 2
0
        /// <summary>
        /// Creates the footnote.
        /// </summary>
        /// <param name="document">The document.</param>
        /// <param name="node">The node.</param>
        /// <returns></returns>
        public Footnote CreateFootnote(IDocument document,XmlNode node)
        {
            try
            {
                Footnote fnote			= new Footnote(document);
                fnote.Node				= node.CloneNode(true);

                return fnote;
            }
            catch(Exception ex)
            {
                AODLException exception		= new AODLException("Exception while trying to create a Footnote.");
                exception.InMethod			= AODLException.GetExceptionSourceInfo(new StackFrame(1, true));
                exception.Node				= node;
                exception.OriginalException	= ex;

                throw exception;
            }
        }