/** Constructs a deep copy of a <CODE>PdfPCell</CODE>.
* @param cell the <CODE>PdfPCell</CODE> to duplicate
*/
public PdfPCell(PdfPCell cell) : base(cell.llx, cell.lly, cell.urx, cell.ury)
{
CloneNonPositionParameters(cell);
verticalAlignment = cell.verticalAlignment;
paddingLeft = cell.paddingLeft;
paddingRight = cell.paddingRight;
paddingTop = cell.paddingTop;
paddingBottom = cell.paddingBottom;
phrase = cell.phrase;
fixedHeight = cell.fixedHeight;
minimumHeight = cell.minimumHeight;
noWrap = cell.noWrap;
colspan = cell.colspan;
rowspan = cell.rowspan;
if (cell.table != null)
{
table = new PdfPTable(cell.table);
}
image = Image.GetInstance(cell.image);
cellEvent = cell.cellEvent;
useDescender = cell.useDescender;
column = ColumnText.Duplicate(cell.column);
useBorderPadding = cell.useBorderPadding;
rotation = cell.rotation;
id = cell.id;
role = cell.role;
if (cell.accessibleAttributes != null)
{
accessibleAttributes = new Dictionary <PdfName, PdfObject>(cell.accessibleAttributes);
}
headers = cell.headers;
}