Series.Add<T>?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
John
Newbie
Newbie
Posts: 7
Joined: Fri Aug 20, 2010 12:00 am
Contact:

Series.Add<T>?

Post by John » Mon May 16, 2011 5:10 pm

Is there an example on the use of series.Add<t>?

If I define a list<xypoint> can I use this in a line series?

class xypoint
{
double x;
double y;
}

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

Re: Series.Add<T>?

Post by Yeray » Tue May 17, 2011 4:10 pm

Hello John,

The "Add<T>(T TType)" method is intended for those who have an unknown type of source. The method calls the according Add override for the given parameter type. For example if you have a list of object but for any reason you don't know if the list is a list of integers or doubles or ... the "Add<T>(T TType)" method will call "Add(Convert.ToInt32(TType))" or "Add(Convert.ToSingle(TType))" or ...

In your case, I think you are sure you'll have doubles, isn't it? In that case you could directly use the "Add(PointF p)" or the "Add(double x, double y)"
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

jdsu
Newbie
Newbie
Posts: 22
Joined: Tue Jun 14, 2011 12:00 am

Re: Series.Add<T>?

Post by jdsu » Wed Jun 15, 2011 8:31 am

Hi,

I am facing an issue in which the Series.Add<T> doesn't work with the UInt64 type. Can you help me confirm this and how I can get over this issue?

Best regards,
Siguo

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

Re: Series.Add<T>?

Post by Narcís » Thu Jun 16, 2011 9:41 am

Hi Siguo,

I'm afraid Series.Add<T> doesn't support UInt64 at the present moment. I have added your request (TF02015619) to the wish-list to be considered for inclusion in future releases. In the meantime you should convert UInt64 manually as Yeray indicated.
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