XY Chart NET 3 Control Reference
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.

Syntax
[Visual Basic]
Event XScroll()
[C#]
XScroll()
[C++]
XScroll()
       
Example
' 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
    }
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.