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;
}
Series.Add<T>?
Re: Series.Add<T>?
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)"
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Series.Add<T>?
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
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
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Series.Add<T>?
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.
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 |
Instructions - How to post in this forum |