Page 1 of 1

RangeChangedEventArgs constructor

Posted: Thu Apr 21, 2016 5:25 pm
by fredd41
hi

in the version 7.0, can you add this constructor for RangeChangedEventArgs

new RangeChangedEventArgs(min, max, axe, cancel)

thanks

Re: RangeChangedEventArgs constructor

Posted: Sat Apr 23, 2016 6:52 am
by ArctionPasi
Hi,

Event arguments constructors are without parameters, they are filled by the chart internally. You shouldn't need to create event arguments yourself, or raise chart events. If you need to create them, you can simply use the initializer list:

RangeChangedEventArgs args = new RangeChangedEventArgs() { Axis = yourAxis, NewMin = yourNewMin, NewMax = yourNewMax, false };