private IList<BaseColor> applyRowSettings(IList<CellData> row)
{
if (_setNumberOfRowsPerPageNeedsNewPage) SharedData.PdfDoc.NewPage();
var backColor = CurrentRowInfoData.LastOverallDataRowNumber % 2 != 0 ? SharedData.Template.RowBackgroundColor : SharedData.Template.AlternatingRowBackgroundColor;
var foreColor = CurrentRowInfoData.LastOverallDataRowNumber % 2 != 0 ? SharedData.Template.RowFontColor : SharedData.Template.AlternatingRowFontColor;
CurrentRowInfoData.LastOverallDataRowNumber++;
CurrentRowInfoData.LastGroupRowNumber++;
if (GroupsManager.ShouldStartNewGroup(row))
{
GroupsManager.StartNewGroup(row, !_setNumberOfRowsPerPageNeedsNewPage);
}
else
{
if (CurrentRowInfoData.LastOverallDataRowNumber == 1)
TableInitAddHeaderAndFooter();
}
return new List<BaseColor> { backColor, foreColor };
}