Please change your line of code to: c.GetStyle().ForegroundColor.ToArgb
For your information, if the pattern is “Solid” or “None”, the foreground color (set/get) would be the shading color. For all other pattern types, you will use background color of the style.
Well, actually your C2 cell’s color is empty, this is not white color. See the following line of code to detect if the color is empty or not:
e.g Sample code:
…
bool empty = c.GetStyle().ForegroundColor.IsEmpty;
…
Of course i thought about a Default Color (in this case White :)). I just use 255,255,255 now and hope that Excel has no Default Color that for instance can be set to black as I do it in my Dev-Studio.