Page 1 of 1

Number of series associated to a custom axis.

Posted: Mon Jan 02, 2006 5:50 pm
by 9524350
Hello,

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

Thanks.

Posted: Mon Jan 02, 2006 6:26 pm
by Pep
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());

Posted: Mon Jan 02, 2006 6:49 pm
by 9524350
Thans for this quick answer.

Best regards.