Advanced Color Options Example
Conditionalformattings can apply other colors than just .Color. You can also apply theme, index or auto color.
Here's an example of applying theme color using .Theme instead on a AboveAverageRule:
The same logic applies to most other conditional formattings. With the exception of Databars and Colorscales.
Below only available from Epplus 7.0 onwards
As of Epplus 7.0 databars and color scales have built in support for theme, index or auto color options.
Here are some examples of applying theme colors on
A databar:
A ThreeColorScale:
Note that there are some differences in how to set the colors due to ensuring backwards compatability, and because Databars has multiple options on one whole whereas colorScale has different needs as these two are more complex and diverse types.