private FontSelector setFontStyles(CellAttributes attributes) { foreach (var font in attributes.BasicProperties.PdfFont.Fonts) { font.Color = _foreColor; if (_fontUnderline) font.SetStyle(Font.UNDERLINE); } return attributes.BasicProperties.PdfFont.FontSelector; }