Page 1 of 1

How to get the selected series ?

Posted: Wed May 05, 2010 12:01 pm
by 15655593
Hello,

I am using Visual Studio 2008 (Visual Basic).

I have add a TChart to my projekt (TChart .net 2009)

I have got a "FastLine" series. In my project I clone this series:

Tchart1.series(0).clone

So far, so good...

Now I would like to the the click_series event.

If I click on a series, the event will be in action, but how can I get the selected series index ?

In AXTchart there was a coding like this: Tchart.series(e.seriesindex)

Thank you for your help.

Jochen

Re: How to get the selected series ?

Posted: Wed May 05, 2010 1:08 pm
by 15655333
sample code on C#

Code: Select all

    private void line_Click(object sender, MouseEventArgs e)
    {
      Steema.TeeChart.Styles.Line line = sender as Steema.TeeChart.Styles.Line;
      int i = line.Chart.Series.IndexOf(line);
    }


Re: How to get the selected series ?

Posted: Wed May 05, 2010 1:51 pm
by 15655593
Sorry, but how is the code in visual basic ?

Thank you

Jochen

Re: How to get the selected series ?

Posted: Wed May 05, 2010 4:38 pm
by narcis