PdfRpt.Core.Helper.TableCellDefinitionsExt.applyTemplateColors C# (CSharp) Method

applyTemplateColors() private static method

private static applyTemplateColors ( CellBasicProperties from, CellBasicProperties to ) : void
from PdfRpt.Core.Contracts.CellBasicProperties
to PdfRpt.Core.Contracts.CellBasicProperties
return void
        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;
            }
        }