Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






NotesColorObject class

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.

Notes

Red

Green

Blue

Hue

Sat

Lum

Constant

0.00

0.00

0.00

0.00

160.00

0.00

0.00

COLOR_BLACK

1.00

255.00

255.00

255.00

160.00

0.00

240.00

COLOR_WHITE

2.00

255.00

0.00

0.00

0.00

240.00

120.00

COLOR_RED

3.00

0.00

255.00

0.00

80.00

240.00

120.00

COLOR_GREEN

4.00

0.00

0.00

255.00

160.00

240.00

120.00

COLOR_BLUE

5.00

255.00

0.00

255.00

200.00

240.00

120.00

COLOR_MAGENTA

6.00

255.00

255.00

0.00

40.00

240.00

120.00

COLOR_YELLOW

7.00

0.00

255.00

255.00

120.00

240.00

120.00

COLOR_CYAN

8.00

128.00

0.00

0.00

0.00

240.00

60.00

COLOR_DARK_RED

9.00

0.00

128.00

0.00

80.00

240.00

60.00

COLOR_DARK_GREEN

10.00

0.00

0.00

128.00

160.00

240.00

60.00

COLOR_DARK_BLUE

11.00

128.00

0.00

128.00

200.00

240.00

60.00

COLOR_DARK_MAGENTA

12.00

128.00

128.00

0.00

40.00

240.00

60.00

COLOR_DARK_YELLOW

13.00

0.00

128.00

128.00

120.00

240.00

60.00

COLOR_DARK_CYAN

14.00

128.00

128.00

128.00

160.00

0.00

120.00

COLOR_GRAY

15.00

192.00

192.00

192.00

160.00

0.00

181.00

COLOR_LIGHT_GRAY

See examples

Examples: NotesColorObject class
Related topics
LotusScript Classes A-Z
Representing a color




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009