Color - property of object ExtTrend
Color of displayed variable.
sColor = oTrend.Item(2).Color 'in sColor is a RGB String in the form "#RRGGBB"
Property access for read and write
. The preset value of this property is defined in the "Color
" configurator of this object. The property returns/sets the RGB String
in the form "#RRGGBB"
The value entered here is used as initialization value for trend viewer (for the PmgTrendViewer object). The value is entered in the following property: tvGraph.Color
Examples of obtaining this property in script.
value = pMe.Pm("/data/#vars/Temperature/#ext/trend").Color;
value = pMe.Pm("/data/#vars/Temperature").Extension("trend").Color;
value = pMe.Pm("/data").Item("Temperature").Extension("trend").Color;
The example of obtaining this property by Macro expression
from another data extension via pDE