How do I tell which axis is the sender in the GetAxisLabel event, other than Title.Text (since my Title.Text is changing dynamically all the time). I would like to know if the calling Axis is the chart.Axis.Bottom Axis.
regard
Joachim
Identify Axis in GetAxisLabel event
Identify Axis in GetAxisLabel event (continued)
Sorry, I forgot something:
I have multiple charts all pointing to the same event handler, so the code:
chart1.Axis.Bottom will not work. Is there not some general Type I can compare with like
I have multiple charts all pointing to the same event handler, so the code:
chart1.Axis.Bottom will not work. Is there not some general Type I can compare with like
Code: Select all
if((sender) typeof(Steema.TChart.Axis.Bottom))?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi *joachim*,
Before using the code you posted you will have to do:
for every chart you have on your project.
Before using the code you posted you will have to do:
Code: Select all
if ((sender as Steema.TeeChart.Axis).Chart= tChart1 )
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |