LabelBorderFormat - property of the tvTrend object
Description:
Format of scale edge legends.
Syntax:
Variant LabelBorderFormat
Note:
Property access
for read and write. Setting this property is the same as the setting of the
tvScale.LabelBorderFormat property and meaning depends on the value of the
tvScale.LabelBorderFormatType property.
Moreover it is possible to set here the value trend.LabelBorderFormat="$dbind", it means that this property doesn't keep its value of the format but it reads it from the tvScale.LabelBorderFormat property.
The default value is "$dbind".
Example:
If the active trend (see
PmgTrendViewer.TrendActive) is
the first trend (trend on the index
0), then the legends of the value scale edges are numeric values to
1 decimal places. If the active trend is
the second trend (trend on the index
0), then the legends of the value scale edges are numeric values to
2 decimal places. The legends of the time scale edges are the time with the format: day.month.year
NewLine hour:minute:second.
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe.Items("../TrendView");
var oScaleTime = oTView.ScaleTime;
var oScaleValue = oTView.ScaleValue;
oScaleValue.LabelBorderFormatType = 1;
oTView.Trends(0).LabelBorderFormat = 0;
oTView.Trends(1).LabelBorderFormat = 2;
oScaleTime.LabelBorderFormatType = 10;
oScaleTime.LabelBorderFormat = "%d.%m.%Y\n%H:%M:%S";
Dim oTView, oScaleTime, oScaleValue
Set oTView = pMe.Items("../TrendView")
Set oScaleTime = oTView.ScaleTime
Set oScaleValue = oTView.ScaleValue
oScaleValue.LabelBorderFormatType = 1
oTView.Trends(0).LabelBorderFormat = 0
oTView.Trends(1).LabelBorderFormat = 2
oScaleTime.LabelBorderFormatType = 10
oScaleTime.LabelBorderFormat = "%d.%m.%Y" & vbCrLf & "%H:%M:%S"