예제 #1
0
        /// <summary>
        /// <inheritdoc cref="IPrintableDocumentParagraph.AddNewContent{T}"/>
        /// </summary>
        public T AddNewContent <T>() where T : class, IPrintable
        {
            T newContentObject = _elementFactory.CreateElement <T>();

            _content.Add(newContentObject);

            return(newContentObject);
        }
예제 #2
0
 /// <summary>
 /// <inheritdoc cref="IPrintableDocument.CreateElement{T}"/>
 /// </summary>
 public T CreateElement <T>() where T : class, IPrintable
 {
     return(_factory.CreateElement <T>());
 }