According to the documentation you can add conditional formatting to a cell using the syntax:
.AddConditionalFormat().WhenEquals("=B1")
So I tried this:
cell.AddConditionalFormat().WhenEquals("=F5=0")
.Fill.SetBackgroundColor(XLColor.FromHtml("#f00"));
However, whenever I try this, load the spreadsheet into Excel, and look at the conditional formatting for the cell, it seems to have changed it to a simple 'cell value equals' type, rather than a formula type. So I see this:
but what I want to see is this:
What am I missing!?