Customize the colors of hatchStyle ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Verane
Newbie
Newbie
Posts: 23
Joined: Thu Jan 09, 2003 5:00 am

Customize the colors of hatchStyle ?

Post by Verane » Tue Aug 19, 2008 1:19 pm

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.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Aug 20, 2008 10:49 am

Hello Verane,

how about adding the following line ?

tool.Brush.ForegroundColor = Color.White;

Post Reply