I was using the DrawLineItem programmatically as it enabled me to use different line types (dashed, dotted, etc). I see from your release notes that StartPos and EndPos have now been changed, and also my program won't now compile if I try to set these programmatically!
Is there a way round this? I think that I tried to use ColorLine before but DrawLine seemed to be more versatile.
Thanks
jenb
DrawLineItem in new release (4th April)
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi jenb,
Yes, this has been changed and needs to be used as shown in the All Features\Welcome !\Tools\Draw Lines\DrawLine Tool example in the features demo:
Yes, this has been changed and needs to be used as shown in the All Features\Welcome !\Tools\Draw Lines\DrawLine Tool example in the features demo:
Code: Select all
/* set the "X" line positions (start and end position) */
Steema.TeeChart.Tools.DrawLineItem I = new Steema.TeeChart.Tools.DrawLineItem(drawLine1);
/* set the "Y" line positions (start and end position) */
double tmp = lineSeries1.YValues.Range/5.0;
I.StartPos = new Steema.TeeChart.Drawing.PointDouble(5, lineSeries1.YValues.Maximum - tmp);
I.EndPos = new Steema.TeeChart.Drawing.PointDouble(15, lineSeries1.YValues.Minimum + tmp);
Best Regards,
Narcís Calvet / 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 |