This project has moved and is read-only. For the latest updates, please go here.

Copy cell ExcelColor to another cell

Mar 21, 2014 at 2:36 PM
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)));