Read access to the color of a data object. Read/write access to the color of the current formula.
Syntax
DataObject.color
or
Data.color
or
this.color = Color
or
Data.color = Color
The syntax of the color property consists of the following elements:
Element |
Description |
|---|---|
DataObject |
The data object being accessed. Use this to access the current formula. |
Data |
A flexpro.Data object to which header information of the data object from which it originates is assigned. |
Color |
A 32-bit integer value that defines the RGB color value. With the integer values R (red), G (green) and B (blue) in the range from 0 to 255, the RGB color value is calculated as follows: R + (G << 8) + (B << 16). The value -1 corresponds to "no color". |
Remarks
Write access to the header information of a data object is only permitted for the formula in which the Python code is located. Instead of using write access, you should preferably edit the attribute on the General tab of the Properties dialog box.
Available In
FlexPro Professional, Developer Suite
Examples
flexpro.object(r'\DataSet').color |
Returns a 32-bit integer value that represents the color of a data set in the root folder. |
this.color = 0x0000ff |
Assigns the color 100% red to the current formula. |