Function
Automatically adjusts the display magnification of the graph.
Format
Ret = dncGraph1.AutoZoom(ZoomDirection, DataRange)
Parameters
ZoomDirection
[ C#: short ] [ VB.NET: Short ]
Specify the zoom-in/zoom-out direction.
Value |
Description |
0 |
X-axis direction |
1 |
Y-axis direction |
2 |
Both axes direction |
DataRange [ C#: short ] [ VB.NET: Short ]
Specifies the target range to be scaled.
Value |
Description |
0 |
Overall |
1 |
Screen display range |
Return value
Ret [ C#: int ] [ VB.NET: Integer ]
Value |
Description |
0 |
Normality completion |
510001 |
The input parameter is invalid. Check the parameter contents. |
Other errors (see: Error code details)
Remarks
Adjust the enlargement ratio so that the ratio of the entire data under the specified conditions to the display screen is 100%.
An execution example is shown below.
■Graph example
①ZoomDirection : 0 X-axis direction, DataRange: 0 Overall
・Adjust so that the data is displayed in the entire X-axis direction regardless of the current display state.
*The magnification in the Y-axis direction does not change.
②ZoomDirection : 0 X-axis direction, DataRange: 1 Screen display range
・For the in-screen data currently displayed, adjust so that the data is displayed in the entire X-axis direction.
*The magnification in the Y-axis direction does not change.
③ZoomDirection : 1 Y-axis direction, DataRange: 0 Overall
・Adjust so that the data is displayed in the entire Y-axis direction regardless of the current display state.
*The magnification in the X-axis direction does not change.
④ZoomDirection : 1 Y-axis direction, DataRange: 1 Screen display range
・For the in-screen data currently displayed, adjust so that the data is displayed in the entire Y-axis direction.
*The magnification in the X-axis direction does not change.
⑤ZoomDirection : 2 Both axes direction, DataRange: 0 Overall
・Adjust so that the data is displayed in the entire XY axes direction regardless of the current display state.
*It has the same function as the adjust zoom on the Toolbar.
⑥ZoomDirection : 2 Both axes direction, DataRange: 1 Screen display range
・For the in-screen data currently displayed, adjust so that the data is displayed in the entire XY axes direction.
Example
Specifies that all data in the X-axis direction is displayed.
C# |
int Ret
|
VB.NET |
Dim Ret As Integer
|