/// <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); }
/// <summary> /// <inheritdoc cref="IPrintableDocument.CreateElement{T}"/> /// </summary> public T CreateElement <T>() where T : class, IPrintable { return(_factory.CreateElement <T>()); }