LOTUSSCRIPT/COM/OLE CLASSES


NotesColorObject class
Example

Represents a color.

Note This class is new with Release 6.

Containment

Contained by: NotesRichTextSection, NotesRichTextTable, NotesSession

Properties

Blue

Green

Hue

Luminance

NotesColor

Red

Saturation

Methods

SetHSL

SetRGB

Creation

To create a NotesColorObject object, use the CreateColorObject method of NotesSession.

Usage

Domino defines colors numbered 0 through 240, as reflected in the read-write property NotesColor. Each Domino color maps to RGB (red, green, and blue) values in the range 0-255 and HSL (hue, saturation, and luminance) values in the range 0-240, as reflected in the remaining, read-only properties.

NotesColor can be used as the value for the following properties: NotesColor in NotesRichTextStyle; BackgroundColor in NotesView; FontColor and HeaderFontColor in NotesViewColumn.

The following table lists the values for the first 16 Domino colors, which are defined by LotusScript constants. See the example for code to generate the values for all 241 colors.
NotesRedGreenBlueHueSatLumConstant
0.000.000.000.00160.000.000.00COLOR_BLACK
1.00255.00255.00255.00160.000.00240.00COLOR_WHITE
2.00255.000.000.000.00240.00120.00COLOR_RED
3.000.00255.000.0080.00240.00120.00COLOR_GREEN
4.000.000.00255.00160.00240.00120.00COLOR_BLUE
5.00255.000.00255.00200.00240.00120.00COLOR_MAGENTA
6.00255.00255.000.0040.00240.00120.00COLOR_YELLOW
7.000.00255.00255.00120.00240.00120.00COLOR_CYAN
8.00128.000.000.000.00240.0060.00COLOR_DARK_RED
9.000.00128.000.0080.00240.0060.00COLOR_DARK_GREEN
10.000.000.00128.00160.00240.0060.00COLOR_DARK_BLUE
11.00128.000.00128.00200.00240.0060.00COLOR_DARK_MAGENTA
12.00128.00128.000.0040.00240.0060.00COLOR_DARK_YELLOW
13.000.00128.00128.00120.00240.0060.00COLOR_DARK_CYAN
14.00128.00128.00128.00160.000.00120.00COLOR_GRAY
15.00192.00192.00192.00160.000.00181.00COLOR_LIGHT_GRAY

Example
See Also