XY Chart NET 3 Control Reference > Properties > MaxXValue Property |
Use this property to obtain the current maximum x-value, of a specific x-axis, displayed on the graph. The value returned is of type Double.
[Visual Basic] ReadOnly Property MaxXValue(XAxisNumber As Integer) As Double |
[C#] double XYChartNETCtl.get_MaxXValue(int XAxisNumber) |
[C++] property double MaxXValue[int] |
This property can be used to obtain the current maximum x-value displayed on the graph after a zoom-in has occurred.
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Dim tmpMin As Double Dim tmpMax As Double tmpMin = XYChartNETCtl1.MinXValue(3) 'Get the current min value for x-axis 3 tmpMax = XYChartNETCtl1.MaxXValue(3) 'Get the current max value for x-axis 3
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. double tmpMin; double tmpMax; tmpMin = XYChartNETCtl1.get_MinXValue(1); //Get the current min value for x-axis 1 tmpMax = XYChartNETCtl1.get_MaxXValue(1); //Get the current max value for x-axis 1
// XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. double tmpMin; double tmpMax; tmpMin = XYChartNETCtl1->MinXValue[0]; //Get the current min value for x-axis 0 tmpMax = XYChartNETCtl1->MaxXValue[0]; //Get the current max value for x-axis 0