CursorTimeLocation - property of the PmgTrendViewer object
Description:
Cursor time location.
Syntax:
Long CursorTimeLocation
Values:
0 - not visible
1 (default) - is displayed at the bottom of the graph area
2 - is displayed at the up of the graph area
Note:
Property access
for read and write.
The default value of this property is defined in the "
Display cursor time" configurator of this object.
This property is also functional in
Web panels.
The property is used only if the
graphic mode is set.
The time, corresponding to the vertical cursor line, is rendered inside the chart panel.
The format and font is the same as for the time scale values displayed, see
LabelFormat,
LabelFont.
The time value can be gathered in the script by means of the
CursorTime property.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oTView = pMe.Items("../TrendView");
var nCursorTimeLoc = oTView.CursorTimeLocation;
// Reading from the property
oTView.CursorTimeLocation = 1;
// Writing into the property
Dim oTView
Set oTView = pMe.Items("../TrendView")
Dim nCursorTimeLoc
nCursorTimeLoc = oTView.CursorTimeLocation
' Reading from the property
oTView.CursorTimeLocation = 1
' Writing into the property