Skip to main content

NotesColorObject (LotusScript)

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 Position 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; Position 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.

Notes®RedGreenBlueHueSatLumConstant
000016000COLOR_BLACK
12552552551600240COLOR_WHITE
2255000240120COLOR_RED
30255080240120COLOR_GREEN
400255160240120COLOR_BLUE
52550255200240120COLOR_MAGENTA
6255255040240120COLOR_YELLOW
70255255120240120COLOR_CYAN
812800024060COLOR_DARK_RED
9012808024060COLOR_DARK_GREEN
100012816024060COLOR_DARK_BLUE
11128012820024060COLOR_DARK_MAGENTA
1212812804024060COLOR_DARK_YELLOW
13012812812024060COLOR_DARK_CYAN
141281281281600120COLOR_GRAY
151921921921600181COLOR_LIGHT_GRAY

Example