Return Series Style

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
rossmc
Newbie
Newbie
Posts: 57
Joined: Wed Apr 08, 2009 12:00 am

Return Series Style

Post by rossmc » Tue Sep 29, 2009 1:29 pm

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.

Yeray
Site Admin
Site Admin
Posts: 9614
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Return Series Style

Post by Yeray » Tue Sep 29, 2009 2:03 pm

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;
}
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply