nType | (Long) Type of setting the range. See the "Range of the time axis" configurator.
1 - vPar1, vPar2 is a new time of the left and right viewer edge (of the Date type).
If a relative time is displayed on the time axis (the date is not shown, on the time axis there is the time, for example from 0 sec to 10 sec), then it is necessary to set the time explicitely: oTView.ZoomTime(1, 1, 0, 10/24/3600) = corresponds to the range of the time axis from 0 to 10 seconds. 10,11 - Decrease, increase of the range automatically according to the table.
Set vPar1, vPar2 parameters to 0. 20 - Change of the zoom with the preservation of the time according to the nFixed parameter.
There is the multiple of the time axis current length in the vPar1 parameter, for example 2=increasing the range, 0.5=decreasing the range. Set vPar2 to 0. 21 - Change of the zoom with the preservation of the time according to the nFixed parameter.
There is a new range in the vPar1 parameter, a real number that refers to the multiple of the days number, is entered, for example 2 means the range of 2 days, 0.5 means the range of 12 hours, 1/24/60 means the range of 1 minute, etc. Set the vPar2 parameter to 0. |
---|---|
nFixed | (Long) Specifies the fixed part while zooming.
If it is nType=1 then the value of the nFixed parameter is not used. 1 - Zoom with the preservation of the left edge time
2 - Zoom with the preservation of the right edge time
3 - Zoom with the preservation of the center time
4 - Zoom with the preservation of the cursor time |
vPar1 | (Variant) The meaning according to setting nType. |
vPar2 | (Variant) The meaning according to setting nType. |
var oTView = pMe.Items("../TrendView");
oTView.ZoomTime(1, 1, Pm.Time - 1/24/6, Pm.Time);
oTView.Draw();
var oTView = pMe.Items("../TrendView");
oTView.ZoomTime(21, 1, 1/24, 0);
oTView.Draw();