Promotic

AlignType - property of the tvScale object

Description:
Align type of left/low edge of the scale.
This property is obsolete (but functional) and it is better to use the tvTicks.AlignType property.
Syntax:
Long AlignType
Values:
0 (default) - No alignment
1 - Alignment to the multiple of the absolute value. A value is entered in the AlignValue property (either a real number for the value scale or a time of the Date type for the time scale) whose multiple has to find itself on the left/low edge of the scale.
For the value (Y) axis there is a real number in AlignValue. For example, 10 in the AlignValue property means that the low edge of the scale is on a multiple of the value 10 (e.g. ...,-10,0,10,20,30,...) but not, for example, on the value 4.5.
For the time axis there is a real number in the AlignValue that refers to the absolute time in days. For example, the 1/24 value in the AlignValue property means that the left edge of the scale is on a multiple of the value 1 hour, (e.g. 00:00:00, 01:00:00, 02:00:00, 03:00:00, etc.).
2 - Alignment to the distance multiple of two scale main ticks. A value of the distance multiple of two scale main ticks is entered in the AlignValue property (e.g. 1.0 is the entire distance of two main ticks, 0.5 is the half of the distance). The left/right edge of the scale is on a multiple of such calculated value.
3 - The same as AlignValue=2, but for the distance of two auxiliary scale ticks.
Note:
Property access for read and write. The default value of this property is defined in the "Align type" configurator of this object.
 
This property is also functional in Web panels.
 
Specifies on which values the left or low edge of the scale is defined. For example, it can be defined that the left edge of the time axis has to be aligned to a value which is a multiple of 1 minute.
See also:
- tvScale.AlignValue (property)
- tvTicks.AlignType (property)
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var oScaleTime = oTView.ScaleTime;
var oScaleValue = oTView.ScaleValue;

oScaleTime.AlignType = 0;
oScaleValue.AlignType = 0;
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.