Page 1 of 1

Don't show the joining lines on a line series

Posted: Tue Mar 28, 2006 8:19 am
by 9088874
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

Posted: Tue Mar 28, 2006 8:30 am
by narcis
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

Posted: Tue Mar 28, 2006 9:20 am
by 9088874
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

Posted: Tue Mar 28, 2006 9:42 am
by narcis
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.