/**
* @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
*/
public void CellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)
{
float sp_left = spacing_left;
if (float.IsNaN(sp_left))
{
sp_left = 0f;
}
float sp_right = spacing_right;
if (float.IsNaN(sp_right))
{
sp_right = 0f;
}
float sp_top = spacing_top;
if (float.IsNaN(sp_top))
{
sp_top = 0f;
}
float sp_bottom = spacing_bottom;
if (float.IsNaN(sp_bottom))
{
sp_bottom = 0f;
}
Rectangle rect = new Rectangle(position.GetLeft(sp_left), position.GetBottom(sp_bottom), position.GetRight(sp_right), position.GetTop(sp_top));
rect.CloneNonPositionParameters(this);
canvases[PdfPTable.BACKGROUNDCANVAS].Rectangle(rect);
rect.BackgroundColor = null;
canvases[PdfPTable.LINECANVAS].Rectangle(rect);
}