And, each of us had a part of the answer! (Casting for XSSFCellStyle was what I was missing, because ICellStyle has no SetFill methods, so I could not get my own color, only one of the indexed ones ...)
You need to do two things:
- Call SetFillForegroundColor, not SetFillBackgroundColor.
- . FillPattern = FillPattern.SolidForeground;
-, Excel , , , , , , FillPattern . SolidForeground - , , , . -, "" " ", "SetBackgroundForegroundColor" / "SetBackgroundBackgroundColor"