XY Chart NET 3 Control Reference > Events > XScroll Event |
This event is generated whenever the user clicks on the horizontal scrollbar. Use this event to perform operations specific to whenever a horizontal scroll is performed.
[Visual Basic] Event XScroll() |
[C#] XScroll() |
[C++] XScroll() |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Private Sub XYChartNETCtl1_XScroll() Handles XYChartNETCtl1.XScroll Dim newMinX as Double, newMaxX as Double newMinX = XYChartNETCtl1.MinXValue(0) 'Obtain min x-value (of first x-axis) of scrolled area newMaxX = XYChartNETCtl1.MaxXValue(0) 'Obtain max x-value (of first x-axis) of scrolled area End Sub
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. private void XYChartNETCtl1_XScroll() { double newMinX; double newMaxX; newMinX = XYChartNETCtl1.get_MinXValue(0); //Obtain min x-value (of first x-axis) of scrolled area newMaxX = XYChartNETCtl1.get_MaxXValue(0); //Obtain max x-value (of first x-axis) of scrolled area }
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. private: System::Void XYChartNETCtl1_XScroll() { double newMinX; double newMaxX; newMinX = XYChartNETCtl1->get_MinXValue(0); //Obtain min x-value (of first x-axis) of scrolled area newMaxX = XYChartNETCtl1->get_MaxXValue(0); //Obtain max x-value (of first x-axis) of scrolled area }