Example #1
0
        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);
        }
Example #2
0
        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;
        }