iTextSharp.text.SimpleCell.CellLayout C# (CSharp) Метод

CellLayout() публичный Метод

public CellLayout ( PdfPCell cell, Rectangle position, PdfContentByte canvases ) : void
cell iTextSharp.text.pdf.PdfPCell
position Rectangle
canvases iTextSharp.text.pdf.PdfContentByte
Результат void
        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);
        }