Promotic
WikipediaLinkedInYoutubeTwitterFacebook

LabelFormatType - property of object tvScale

Description:
Format type of the legends at the scale main ticks (see what is the main tick of the tvTicks object). For setting the format of the legends it is necessary to set the LabelFormatType and LabelFormat property. Default value at the value scale is 1 (entered by the number of decimal places), at the time scale it is 10 (entered by the string format).
Syntax:
LabelFormatType As Long
Calling:
oScale.LabelFormatType = nType
Values:
0 - LabelFormat or tvTrend.LabelFormat means the number of valid numbers from the difference tvTrend.ValueMax and tvTrend.ValueMin Automatic mode, legend is displayed so that is it shown with the sufficient precise according to the scale range (ValueMax - ValueMin).
1 - LabelFormat or tvTrend.LabelFormat sets the number of decimal places.
10 - LabelFormat or tvTrend.LabelFormat sets the format formula.
Note:
Property access for read and write. The preset value of this property is defined in the LabelFormatType configurator of this object.
Example:
Legends of the value scale are numeric values to 2 decimal places. Legends of the time scale are a time with the format: day.month.year NewLine hour:minute:second.
oTView.ScaleValue.LabelFormatType = 1
oTView.ScaleTime.LabelFormatType = 10
oTView.ScaleTime.LabelFormat = "%d.%m.%Y" & vbLf & "%H:%M:%S"
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice