Copy cell ExcelColor to another cell

Mar 21, 2014 at 1:36 PM
Hi,
I have a problem to copy the style cell to cell.
Rgb color work, but Theme color don't have a set metod
   private void SetColor(ExcelColor color, ExcelColor template)
    {
        if (template.Indexed >= 0)
            color.Indexed = template.Indexed;

        color.Tint = template.Tint;
        if (!string.IsNullOrEmpty(template.Rgb))
            color.SetColor(ColorTranslator.FromHtml(string.Format("#{0}", template.Rgb)));
    }