public PdfPCell GetNewHeader(Columna columna) { Font font = FontFactory.GetFont(Fuente, fuenteTamaño, Font.BOLD); var phrase = new Phrase(columna.Nombre, font); var pdfPCell = new PdfPCell(tabla.DefaultCell); pdfPCell.PaddingBottom = 3; if (MostrarBordes) { pdfPCell.BackgroundColor = BaseColor.LIGHT_GRAY; } else { pdfPCell.BorderWidthBottom = 0.5f; } pdfPCell.Phrase = phrase; pdfPCell.HorizontalAlignment = (int)columna.Alineacion; return(pdfPCell); }
public PdfPCell GetNewHeader(Columna columna) { Font font = FontFactory.GetFont (Font.FontFamily.HELVETICA.ToString (), fuenteTamaño, Font.BOLD); var phrase = new Phrase (columna.Nombre, font); var pdfPCell = new PdfPCell (tabla.DefaultCell); pdfPCell.PaddingBottom = 3; if (MostrarBordes) { pdfPCell.BackgroundColor = BaseColor.LIGHT_GRAY; } else { pdfPCell.BorderWidthBottom = 0.5f; } pdfPCell.Phrase = phrase; pdfPCell.HorizontalAlignment = (int)columna.Alineacion; return pdfPCell; }