DrawLine Toggle Between Visible and Invisible
Posted: Tue Jul 17, 2007 1:18 pm
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
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