Identify Axis in GetAxisLabel event

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
*joachim*
Newbie
Newbie
Posts: 5
Joined: Tue Jan 13, 2004 5:00 am

Identify Axis in GetAxisLabel event

Post by *joachim* » Mon May 30, 2005 9:07 am

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

*joachim*
Newbie
Newbie
Posts: 5
Joined: Tue Jan 13, 2004 5:00 am

Identify Axis in GetAxisLabel event (continued)

Post by *joachim* » Mon May 30, 2005 9:13 am

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

Code: Select all

if((sender) typeof(Steema.TChart.Axis.Bottom))?

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

Post by Narcís » Mon May 30, 2005 9:47 am

Hi *joachim*,

Before using the code you posted you will have to do:

Code: Select all

if ((sender as Steema.TeeChart.Axis).Chart= tChart1 )
for every chart you have on your project.
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