Page 1 of 1

Return Series Style

Posted: Tue Sep 29, 2009 1:29 pm
by 13052926
Hi again

How on earth do I determine the series type when enumerating the series collection?

Code:
For i As Integer = 0 To (mychart.Series.Count - 1)
if mychart.series.item(i).... (what do I put here to determine the style of the series)
Next

*I want to access the style properties as well. I need to determine if the series in question is a line or a candle so I can pass either the line color or the up colour and down colour to another procedure.

Re: Return Series Style

Posted: Tue Sep 29, 2009 2:03 pm
by yeray
Hi rossmc,

You should do as follows in CSharp:

Code: Select all

if (tChart1[i] is Steema.TeeChart.Styles.Bar)
{
    ((Steema.TeeChart.Styles.Bar)tChart1[i]).MultiBar = Steema.TeeChart.Styles.MultiBars.Stacked;
}