PdfRpt.HeaderTemplates.DefaultHeaderProvider.RenderingReportHeader C# (CSharp) Méthode

RenderingReportHeader() public méthode

Fires when a new page is being added.
public RenderingReportHeader ( Document pdfDoc, PdfWriter pdfWriter, IList summaryData ) : PdfGrid
pdfDoc iTextSharp.text.Document
pdfWriter iTextSharp.text.pdf.PdfWriter
summaryData IList
Résultat PdfRpt.Core.Contracts.PdfGrid
        public PdfGrid RenderingReportHeader(Document pdfDoc, PdfWriter pdfWriter, IList<SummaryCellData> summaryData)
        {
            return TableHelper.SimpleTable(
                columnsNumber: 1,
                pdfCellAttributesList: new List<CellAttributes>
                    {
                        new CellAttributes
                        {
                            BasicProperties = new CellBasicProperties
                            {
                                HorizontalAlignment = HorizontalAlignment.Center,
                                ShowBorder = false,
                                FontColor = new BaseColor(Color.Black.ToArgb()),
                                BackgroundColor = null
                            },
                            RowData = new CellRowData
                            {
                                Value = ImagePath,
                                PdfRowType = RowType.MainHeaderRow
                            },
                            ItemTemplate = new ImageFilePathField()
                        },
                        new CellAttributes
                        {
                            BasicProperties = new CellBasicProperties
                            {
                                BorderColor = BaseColor.BLACK,
                                HorizontalAlignment = HorizontalAlignment.Center,
                                PdfFont = PdfFont,
                                RunDirection = RunDirection ?? PdfRunDirection.RightToLeft,
                                FontColor = MessageFontColor,
                                ShowBorder = false,
                                BackgroundColor = null,
                                PdfFontStyle = MessageFontStyle
                            },
                            RowData = new CellRowData
                            {
                                Value = Message,
                                PdfRowType = RowType.MainHeaderRow
                            }
                        },
                        null
                    },
                    showBorder: true
                );
        }