DrawLine Toggle Between Visible and Invisible

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

DrawLine Toggle Between Visible and Invisible

Post by jenb » 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

Christopher
Site Admin
Site Admin
Posts: 1349
Joined: Thu Jan 01, 1970 12:00 am
Location: Riudellots de la Selva, Catalonia
Contact:

Post by Christopher » Tue Jul 17, 2007 2:00 pm

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.
Thank you!

Christopher Ireland (Steema crew)
Please be aware of the newsgroup archives:
http://www.teechart.net/support/search.php
http://groups.google.com
http://codenewsfast.com/

Post Reply