AlignType - property of the tvScale object
Align type of left/low edge of scale.
This property is obsolete (but functional) and it is better to use the tvTicks.AlignType property.
0 (default) - No alignment
- 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 value 1/24
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.).
- 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 tics.
Property access for read and write
. The preset value of this property is defined in the "Align type
" configurator of this object.
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.
var oTView = pMe.Items("../TrendView");
var oScaleTime = oTView.ScaleTime;
var oScaleValue = oTView.ScaleValue;
oScaleTime.AlignType = 0;
oScaleValue.AlignType = 0;