Representing a color
The NotesColorObject class allows you to represent a Domino® color so that you can access its Domino® value, RGB (red, green, blue) value, and HSL (hue, saturation, luminance) value as properties. Use the CreateColorObject method of NotesSession to establish the object.
The following table lists the NotesColorObject properties.
Property |
Data type |
Description |
---|---|---|
Integer |
(Read-only) Blue RGB value 0-255. |
|
Integer |
(Read-only) Green RGB value 0-255. |
|
Integer |
(Read-only) Hue HSL value 0-240. |
|
Integer |
(Read-only) Luminance HSL value 0-240. |
|
Integer |
Domino® color value. |
|
Integer |
(Read-only) Red RGB value 0-255. |
|
Integer |
(Read-only) Saturation HSL value 0-240. |
Domino® color values are in the range 0-240. Setting NotesColor sets the RGB and HSL properties to values that correspond to the Domino® color value. You can base the color properties on HSL and RGB values through the methods SetHSL and SetRGB.
The following properties and methods use Domino® color values:
- NotesRichTextSection: BarColor, SetBarColor
- NotesRichTextStyle: NotesColor
- NotesRichTextTable: AlternateColor, Color, SetAlternateColor,
and SetColor