Promotic
WikipediaLinkedInYoutubeTwitterFacebook

AlignType - property of object tvTicks

Description:
Align type of the scale main ticks (legends) or the grid lines owing to the values on the (time/value) axis. It defines which values on the scale have got the main tick (and thereby a legend = label) or the grid line. For example, it is possible to define a legend for the value on the time scale at 10:00 and then every 8 hours.
Syntax:
AlignType As Long
Calling:
oTicks.AlignType = n
Values:
0 - no alignment
1 (default) - Automatic alignment according to the current axis range. The AlignValue property is not used.
2 - Value in the AlignValue property specifies the absolute value where the main tick has to be placed.

For the value (Y) axis it is a real number. For example, the value 0 in the AlignValue property means that the legend of the scale is placed for the value 0 and for the next value according to the number of main ticks CountType, CountValue.

For the time axis it is a real number that corresponds to the absolute time in days. For example, the value 1/4 in the AlignValue property means that the main tick is on the value of 06:00:00 hour, the value 0 means the time 00:00:00. The next main ticks are specified by setting the CountType, CountValue properties.

3 - Alignment in percentage. There is specified a value, on which the main tick has to be placed in percentage owing to the axis range (length), in the AlignValue property. For example, the value 30 means that the main tick is placed in 30/100 of (time, value) axis length. The next main ticks are specified by setting the CountType, CountValue properties.
10 - (valid choice only if the value of the property is set in the tvTicks object that belongs to the tvGrid object) alignment is the same as the alignment in the AlignType property of the tvTicks object that belongs to the tvScale object i.e. the grid lines are align exactly to the main ticks of the (time, value) scale.
Note:
Property access for read and write. The preset value of this property is defined in the AlignType configurator of this object.
Example:
See the examples in the description of the tvTicks object.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice