Example #1
0
 /// <summary>Adds any block element to the cell's contents.</summary>
 /// <param name="element">
 /// a
 /// <see cref="BlockElement{T}"/>
 /// </param>
 /// <returns>this Element</returns>
 public virtual iText.Layout.Element.Cell Add <T>(BlockElement <T> element)
     where T : IElement
 {
     childElements.Add(element);
     return(this);
 }
Example #2
0
 /// <summary>Adds a new cell with received blockElement as a content.</summary>
 /// <param name="blockElement">a blockElement to add to the cell and then to the table</param>
 ///
 /// <returns>this element</returns>
 public virtual iText.Layout.Element.Table AddCell <T>(BlockElement <T> blockElement)
     where T : IElement
 {
     return(AddCell(new Cell().Add(blockElement)));
 }