<< Click to Display Table of Contents >> Predefined Color Constants |
The following constants are defined for the .NET Control, ActiveX, VCL and the DLL:
COLOR_BLACK = RGB(0, 0, 0)
COLOR_DKGRAY = RGB(128, 128, 128)
COLOR_GRAY = RGB(192, 192, 192)
COLOR_LTGRAY = RGB(230, 230, 230)
COLOR_WHITE = RGB(255, 255, 255)
COLOR_DKRED = RGB(128, 0, 0)
COLOR_RED = RGB(192, 0, 0)
COLOR_LTRED = RGB(255, 0, 0)
COLOR_DKORANGE = RGB(255, 64, 0)
COLOR_ORANGE = RGB(255, 128, 0)
COLOR_LTORANGE = RGB(255, 192, 0)
COLOR_DKYELLOW = RGB(224, 224, 0)
COLOR_YELLOW = RGB(242, 242, 0)
COLOR_LTYELLOW = RGB(255, 255, 0)
COLOR_DKGREEN = RGB(0, 128, 0)
COLOR_GREEN = RGB(0, 192, 0)
COLOR_LTGREEN = RGB(0, 255, 0)
COLOR_HIGREEN = RGB(0, 255, 128)
COLOR_BLUEGREEN = RGB(0, 128, 128)
COLOR_OLIVE = RGB(128, 128, 0)
COLOR_BROWN = RGB(128, 80, 0)
COLOR_DKBLUE = RGB(0, 0, 128)
COLOR_BLUE = RGB(0, 0, 255)
COLOR_LTBLUE = RGB(0, 128, 255)
COLOR_LTLTBLUE = RGB(0, 160, 255)
COLOR_HIBLUE = RGB(0, 192, 255)
COLOR_CYAN = RGB(0, 255, 255)
COLOR_DKPURPLE = RGB(128, 0, 128)
COLOR_PURPLE = RGB(192, 0, 192)
COLOR_MAGENTA = RGB(255, 0, 255)
The COLOR_xyz constants are also defined in the VPE Control to make it easier to port existing source code to different programming languages.
ActiveX / VCL:
Just use the constants as they are, e.g.: Report.PenColor = COLOR_RED
You can assign any RGB value to a color property.
.NET:
For the .NET Control the constants must be prefixed with the class name VpeControl, e.g.:
Report.PenColor = VpeControl.COLOR_RED
Of course you can use any other member of the .NET Color enumeration, for example
Report.PenColor = Color.Aquamarine
Java:
The constants are defined in the class Colors.
Example: Report.PenColor = Colors.COLOR_RED
Of course you can use any other member of the Java Color enumeration, for example
Report.PenColor = Color.white
PHP / Python / Ruby:
The constants are defined in the class Colors.
Example: Report.PenColor = Colors.COLOR_RED