Page 1 of 1

DrawLineItem in new release (4th April)

Posted: Wed Apr 09, 2008 8:00 am
by 13045625
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

Posted: Wed Apr 09, 2008 10:35 am
by narcis
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);