How to get the selected series ?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
zems
Newbie
Newbie
Posts: 3
Joined: Fri Apr 09, 2010 12:00 am

How to get the selected series ?

Post by zems » Wed May 05, 2010 12:01 pm

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

petroV
Newbie
Newbie
Posts: 24
Joined: Tue Mar 02, 2010 12:00 am

Re: How to get the selected series ?

Post by petroV » Wed May 05, 2010 1:08 pm

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);
    }


zems
Newbie
Newbie
Posts: 3
Joined: Fri Apr 09, 2010 12:00 am

Re: How to get the selected series ?

Post by zems » Wed May 05, 2010 1:51 pm

Sorry, but how is the code in visual basic ?

Thank you

Jochen

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

Re: How to get the selected series ?

Post by Narcís » Wed May 05, 2010 4:38 pm

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