private static void applyTemplateColors(CellBasicProperties from, CellBasicProperties to)
{
if (to.PdfFont != null)
{
if (from.PdfFontStyle != null)
to.PdfFont.Style = from.PdfFontStyle.Value;
if (from.FontColor != null)
to.PdfFont.Color = from.FontColor;
}
}