Am trying to get a thick, red, dashed line on a line graph, I have got red to work by:-
Steema.TeeChart.Styles.Line line = new Steema.TeeChart.Styles.Line(this.WebChart1.Chart);
line.Brush.Color = System.Drawing.Color.Red;
I believe from the help file to get dashed:-
line.Pen.Style = System.Drawing.Drawing2D.DashStyle.Dash
But this does not like Pen after the line, what am I missing?
How do I make the line thicker?
Dashed Line
Re: Dashed Line
Hello mikethelad,
To achieve change the Pen of line series you must access to Pen of line with LinePen property as do in next line of code:
I hope will helps.
Thanks,
To achieve change the Pen of line series you must access to Pen of line with LinePen property as do in next line of code:
Code: Select all
line1.LinePen.Style = System.Drawing.Drawing2D.DashStyle.Dash;
Thanks,
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 58
- Joined: Thu Jul 05, 2012 12:00 am
Re: Dashed Line
Yes that worked, thanks
How do I make it thicker?
How do I make it thicker?
Re: Dashed Line
Hello mikethelad,
You can change the LinePen width as do in next line of code:
Thanks,
You can change the LinePen width as do in next line of code:
Code: Select all
line1.LinePen.Width = 2;
Best Regards,
Sandra Pazos / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |