Page 1 of 1

DrawLine Toggle Between Visible and Invisible

Posted: Tue Jul 17, 2007 1:18 pm
by 13045625
I have a drawline tool with various DrawLineItems. I'm trying to toggle the drawlines between visible and invisible, based on a variable, e.g.

foreach (Steema.TeeChart.Tools.DrawLineItem dl in _tcAugerPeakLine.Lines)
{
dl.Pen.Visible = bVal;
}

I've also tried - _tcAugerPeakLine.Pen.Visible = bVal;

and

for (int i = 0; i < _tcAugerPeakLine.Lines.Count; ++i)
{
_tcAugerPeakLine.Lines.Pen.Visible = bVal;
}

None of these are working. This was working previously with the ActiveX version of TeeChart.

Regards

jenb

Posted: Tue Jul 17, 2007 2:00 pm
by Chris
Hello,
None of these are working. This was working previously with the ActiveX version of TeeChart.
I can confirm that this is a defect in teechart.net v3 and that it has been fixed in this version. The fix will be shipped with the next maintenance release of teechart.net v3, due out at the end of next week.

In the meantime, if you want to set all lines to invisible, you can use the DrawLine.Active property.