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

Blue

Integer

(Read-only) Blue RGB value 0-255.

Green

Integer

(Read-only) Green RGB value 0-255.

Hue

Integer

(Read-only) Hue HSL value 0-240.

Luminance

Integer

(Read-only) Luminance HSL value 0-240.

NotesColor

Integer

Domino® color value.

Red

Integer

(Read-only) Red RGB value 0-255.

Saturation

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