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);
}