Use this property to obtain the current maximum x-value, of a specific x-axis, displayed on the graph.  Valid parameter values for MaxXValue are 1..NumXScales.  The value returned is a double.

NOTE:  This property is read-only.



'XYChartCtl1 is the name of the XY Chart control instance placed on the form

Private Sub XYChartCtl1_ZoomIn()

    Dim newMinX as Double, newMaxX as Double


    newMinX = XYChartCtl1.MinXValue(1)       'Obtain x-axis 1 minimum value

    newMaxX = XYChartCtl1.MaxXValue(1)       'Obtain x-axis 1 maximum value

End Sub


See Also

Properties         MinXValue         MinYValue        MaxYValue     Events