Page 1 of 1

Customize the colors of hatchStyle ?

Posted: Tue Aug 19, 2008 1:19 pm
by 8576839
Hi
I use a SeriesRegionTool like this :

SeriesRegionTool tool = new SeriesRegionTool(senderChart.Chart);
tool.Active = true;
tool.AutoBound = false;
tool.Color = Color.Black;
tool.DrawBehindSeries = true;
tool.Series = mRawDataSerie;
tool.Origin = senderChart.Axes.Left.Minimum;
tool.LowerBound = startTime + mHorizontalOffset;
tool.UpperBound = stopTime + mHorizontalOffset;
tool.Brush.Style = HatchStyle.DarkUpwardDiagonal;
mAverageSpectraBandsCollection.Add(tool);

I get something hatched with black and grey.
How can I replace the grey with white?

Thanks
Verane.

Posted: Wed Aug 20, 2008 10:49 am
by Pep
Hello Verane,

how about adding the following line ?

tool.Brush.ForegroundColor = Color.White;