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

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

public CreatePdfPCell ( SimpleCell rowAttributes ) : PdfPCell
rowAttributes SimpleCell
Результат iTextSharp.text.pdf.PdfPCell
        public PdfPCell CreatePdfPCell(SimpleCell rowAttributes) {
            PdfPCell cell = new PdfPCell();
            cell.Border = NO_BORDER;
            SimpleCell tmp = new SimpleCell(CELL);
            tmp.Spacing_left = spacing_left;
            tmp.Spacing_right = spacing_right;
            tmp.Spacing_top = spacing_top;
            tmp.Spacing_bottom = spacing_bottom;
            tmp.CloneNonPositionParameters(rowAttributes);
            tmp.SoftCloneNonPositionParameters(this);
            cell.CellEvent = tmp;
            cell.HorizontalAlignment = rowAttributes.horizontalAlignment;
            cell.VerticalAlignment = rowAttributes.verticalAlignment;
            cell.UseAscender = rowAttributes.useAscender;
            cell.UseBorderPadding = rowAttributes.useBorderPadding;
            cell.UseDescender = rowAttributes.useDescender;
            cell.Colspan = colspan;
            if (horizontalAlignment != Element.ALIGN_UNDEFINED)
                cell.HorizontalAlignment = horizontalAlignment;
            if (verticalAlignment != Element.ALIGN_UNDEFINED)
                cell.VerticalAlignment = verticalAlignment;
            if (useAscender)
                cell.UseAscender = useAscender;
            if (useBorderPadding)
                cell.UseBorderPadding = useBorderPadding;
            if (useDescender)
                cell.UseDescender = useDescender;
            float p;
            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;
            p = padding_left;
            if (float.IsNaN(p)) p = 0f; 
            cell.PaddingLeft = p + sp_left;
            p = padding_right;
            if (float.IsNaN(p)) p = 0f; 
            cell.PaddingRight = p + sp_right;
            p = padding_top;
            if (float.IsNaN(p)) p = 0f; 
            cell.PaddingTop = p + sp_top;
            p = padding_bottom;
            if (float.IsNaN(p)) p = 0f; 
            cell.PaddingBottom = p + sp_bottom;
            foreach (IElement element in content) {
                cell.AddElement(element);
            }
            return cell;
        }