Add DrawLineItem from code
Posted: Fri Aug 18, 2006 4:39 am
I'm trying to add a DrawLineItem to a DrawLine tool associated with my chart using this code:
However, the line doesn't show up. I also tried calling Invalidate() on the chart and on drawLine1 and that doesn't work either. The tool has "Active" set to true. Any ideas?
Code: Select all
Steema.TeeChart.Tools.DrawLineItem newLine = new Steema.TeeChart.Tools.DrawLineItem(drawLine1);
newLine.StartPos.X = 10;
newLine.StartPos.Y = 10;
newLine.EndPos.X = 50;
newLine.EndPos.Y = 50;