Esempio n. 1
0
        /// <summary>
        /// Add a paragraph to this container.
        /// </summary>
        /// <returns>Paragraph being added.</returns>
        public RtfParagraph addParagraph()
        {
            if (!_allowParagraph)
            {
                throw new Exception("Paragraph is not allowed.");
            }
            RtfParagraph block = new RtfParagraph(_allowFootnote, _allowControlWord);

            addBlock(block);
            return(block);
        }
Esempio n. 2
0
		/// <summary>
		/// Add a paragraph to this container.
		/// </summary>
		/// <returns>Paragraph being added.</returns>
		public RtfParagraph addParagraph()
		{
			if (!_allowParagraph) {
				throw new Exception("Paragraph is not allowed.");
			}
			RtfParagraph block = new RtfParagraph(_allowFootnote, _allowControlWord);
			addBlock(block);
			return block;
		}