Promotic
WikipediaLinkedInYoutubeTwitterFacebook

AlignType - property of object tvScale

Description:
Align type of the left or low edge of the scale. It specifies on which values the left or low edge of the scale is defined. For example, it is possible to define that the left edge of the time axis has to be aligned to a value which is a multiple of 1 minute. For the alignment of the scale main ticks see the tvTicks.AlignType property.
Syntax:
AlignType As Long
Calling:
oScale.AlignType = n
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 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.).

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 - Alignment to the distance multiple of two scale minor (shorter ones) ticks. A value of the distance multiple of two scale minor ticks is entered in the AlignValue property (e.g. 1.0 is the entire distance of two minor ticks, 0.5 is the half of the distance). The left/right edge of the scale is on a multiple of such calculated value.
Note:
Property access for read and write. The preset value of this property is defined in the AlignType configurator of this object.

Caution! The scale alignment is not functional on the web and also limited in local application. It is not recommended to use these (obsolete). These are kept only for compatibility reasons.

Example:
See the examples in the AlignValue method.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice