Don't show the joining lines on a line series

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
I-Maps
Newbie
Newbie
Posts: 15
Joined: Fri Oct 21, 2005 4:00 am
Location: South Africa

Don't show the joining lines on a line series

Post by I-Maps » Tue Mar 28, 2006 8:19 am

Hi

I have a line series.

I want to be able to toggle showing the lines that connect the points (so that it looks like a point series).

In the previous version the code I used was

tChart1.Series(1).asLine.LinePen.Visible = True/False

How do I do the same in this version?

Regards
Reg Bust

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Mar 28, 2006 8:30 am

Hi Reg Bust,

Using TeeChart for .NET this is:

Code: Select all

      line1.LinePen.Visible = false;
or

Code: Select all

      (tChart1[0] as Steema.TeeChart.Styles.Line).LinePen.Visible = false;
Which in VB.NET would be:

Code: Select all

      (tChart1(0) as Steema.TeeChart.Styles.Line).LinePen.Visible = False
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

I-Maps
Newbie
Newbie
Posts: 15
Joined: Fri Oct 21, 2005 4:00 am
Location: South Africa

Post by I-Maps » Tue Mar 28, 2006 9:20 am

Hi

Thank you.

I am using VB.NET 2005 and TeeChart.NET.

I could not get it to work exactly as you said.

What I had to do was:

Code: Select all

CType(tChart1.Series(0), Steema.TeeChart.Styles.Line).LinePen.Visible = False
Is there a simpler way?

Regards
Reg Bust

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Mar 28, 2006 9:42 am

Hi Reg Bust,

Sorry, yes, this is the appropiate way. I used Kamal Patel's C# to VB.NET converter. Using Carlos Aguilar's converter gives the same code you posted.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply