Number of series associated to a custom axis.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ACTL
Newbie
Newbie
Posts: 14
Joined: Thu Sep 30, 2004 4:00 am

Number of series associated to a custom axis.

Post by ACTL » Mon Jan 02, 2006 5:50 pm

Hello,

Can you tel me if it is possible to now the count of series associated to a specific custom axe.

Thanks.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jan 02, 2006 6:26 pm

Hi,
not directly, you will have to check each Series, using :

Code: Select all

int NumSerAs=0;
for (int i=0;i<=tChart1.Series.Count-1;++i)
	if (tChart1[i].CustomVertAxis==CustomAxis1) ++NumSerAs;
	MessageBox.Show(NumSerAs.ToString());

ACTL
Newbie
Newbie
Posts: 14
Joined: Thu Sep 30, 2004 4:00 am

Post by ACTL » Mon Jan 02, 2006 6:49 pm

Thans for this quick answer.

Best regards.

Post Reply