I am trying to set the color of individual points in an Excel scatterplot through C#, but can't get it to work. Here is the code I am currently using. Note that the MarkerStyle and MarkerSize part of the code works - so my issue is really about color. I suspect I am missing a cast somewhere.
var point = (Excel.Point)series.Points(index);
point.MarkerStyle = XlMarkerStyle.xlMarkerStyleSquare; point.MarkerSize = 8;
point.MarkerBackgroundColor = 10; point.MarkerForegroundColor = 10;
Thanks in advance for any insight!