DrawLineItem in new release (4th April)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

DrawLineItem in new release (4th April)

Post by jenb » Wed Apr 09, 2008 8:00 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Apr 09, 2008 10:35 am

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:

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply