User`s guide
12 Classes – Alphabetical List
12-14
mlreportgen.dom.BackgroundColor class
Package: mlreportgen.dom
Background color of document element
Description
Specifies the background color of a document element
Construction
backgroundColorObj = BackgroundColor() creates a white background.
backgroundColorObj = BackgroundColor(colorName) creates a background color
object based on the specified CSS color name.
backgroundColorObj = BackgroundColor(rgbValue) creates a background color
object using the hexidecimal RGB color value.
Input Arguments
colorName — Name of a color to use
string
The name of a color, specified as a string. The name must be a CSS color name. See
http://www.crockford.com/wrrrld/color.html.
rgbValue — Hexidecimal RGB (red, green, blue) color value
string
A string using the following RGB format: #RRGGBB. Use # as the first character and two-
digit hexidecimal numbers for each for the red, green, and blue values. For example,
'#0000ff' specifies blue.
Output Arguments
backgroundColorObj — Background color
mlreportgen.dom.BackgroundColor object