ColorBg - property of the PmgRasterImage object
Description:
Background color
Note:
Property access
for read and write. The preset value of this property is defined in the "
Background color" configurator of this object. The property returns/sets the
RGB String in the form
"#RRGGBB".
This property is functional only if the "
Enable background color" configurator is checked.
This property is also functional in
Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oImg = pMe.Items("/RImg0");
var sColorBg = oImg.ColorBg; //reading
oImg.ColorBg = "#ffff00"; //writing
Dim oImg, sColorBg
Set oImg = pMe.Items("/RImg0")
sColorBg = oImg.ColorBg 'reading
oImg.ColorBg = "#ffff00" 'writing