PdfRpt.Core.PdfTable.TableCellHelper.AddSummaryCell C# (CSharp) Method

AddSummaryCell() public method

Adds a new Summary PdfPCell to the MainTable
public AddSummaryCell ( BaseColor backgroundColor, BaseColor foreColor, int columnNumber, CellType pdfCellType, RowType pdfRowType ) : PdfRpt.Core.Contracts.CellAttributes
backgroundColor iTextSharp.text.BaseColor
foreColor iTextSharp.text.BaseColor
columnNumber int
pdfCellType CellType
pdfRowType RowType
return PdfRpt.Core.Contracts.CellAttributes
        public CellAttributes AddSummaryCell(BaseColor backgroundColor, BaseColor foreColor, int columnNumber, CellType pdfCellType, RowType pdfRowType)
        {
            var horizontalAlignment = SharedData.SummarySettings.OverallSummarySettings.LabelHorizontalAlignment;
            var text = SharedData.SummarySettings.OverallSummarySettings.Label;

            if (ShowAllGroupsSummaryRow)
            {
                horizontalAlignment = SharedData.SummarySettings.AllGroupsSummarySettings.LabelHorizontalAlignment;
                text = SharedData.SummarySettings.AllGroupsSummarySettings.Label;
            }

            if (pdfCellType == CellType.PageSummaryCell)
            {
                text = SharedData.SummarySettings.PageSummarySettings.Label;
                horizontalAlignment = SharedData.SummarySettings.PageSummarySettings.LabelHorizontalAlignment;
            }

            return AddGeneralCell(
                            backgroundColor,
                            foreColor,
                            text,
                            columnNumber,
                            pdfRowType,
                            pdfCellType,
                            horizontalAlignment: horizontalAlignment.HasValue ? horizontalAlignment.Value : HorizontalAlignment.None);
        }

Same methods

TableCellHelper::AddSummaryCell ( BaseColor backgroundColor, BaseColor foreColor, object rawData, int columnNumber, RowType pdfRowType, CellType pdfCellType ) : PdfRpt.Core.Contracts.CellAttributes