PdfRpt.Core.PdfTable.MainTableCellsEvent.CellLayout C# (CSharp) Method

CellLayout() public method

This method is called at the end of the cell's rendering.
public CellLayout ( PdfPCell cell, Rectangle position, PdfContentByte canvases ) : void
cell iTextSharp.text.pdf.PdfPCell The current cell
position iTextSharp.text.Rectangle The coordinates of the cell
canvases iTextSharp.text.pdf.PdfContentByte An array of PdfContentByte to add text or graphics
return void
        public void CellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)
        {
            setLastRenderedRowNumber();

            applyCustomCellLayout(cell, position, canvases);
            applyGradientBackground(position, canvases);

            if (_pdfRptCell.SharedData.PdfColumnAttributes == null) return;
            if (_pdfRptCell.SharedData.PdfColumnAttributes.AggregateFunction == null) return;
            if (_pdfRptCell.SharedData.PdfColumnAttributes.IsRowNumber) return;

            if (_pdfRptCell.RowData.PdfRowType == RowType.PreviousPageSummaryRow ||
                _pdfRptCell.RowData.PdfRowType == RowType.AllGroupsSummaryRow ||
                _pdfRptCell.RowData.PdfRowType == RowType.PageSummaryRow ||
                _pdfRptCell.RowData.PdfRowType == RowType.SummaryRow)
            {
                setPagesInfo();
                printSummary(position, canvases);
            }
        }