CAxis::GetRange
CAxis::SetRange
void GetRange( double *range );
void SetRange( double low, double high);
void SetRange( BOOL set, double low, double high );
Parameters
- range - a pre-allocated two element double array to receive the range of the current axis
- set - A Boolean representing whether this is a user-set, or an auto-range set
- low - The low end of the range (need not be less than high)
- high - The high end of the range (need not be greater than low)
Description
GetRange function copies the range of the current axis into range.
For GetRange, if the axis is set for auto-ranging, it will copy the auto-ranged values into range, provided the chart has been displayed. The value returned by GetRange is invalid until the chart is displayed.
For SetRange, calling this function with set equal to TRUE or without set means that auto-ranging is turned off for this axis. Calling this function with set equal to FALSE retains auto-ranging.
CAxis Reference | CPlot Reference