Color (RichTextStyle - Java)

Read-Write. Color rich-text attribute as listed.

Defined in

RichTextStyle

Data type

int

Syntax

public int getColor()
    throws NotesException
public void setColor(int value)
    throws NotesException

Legal values

  • RichTextStyle.COLOR_BLACK
  • RichTextStyle.COLOR_BLUE
  • RichTextStyle.COLOR_CYAN
  • RichTextStyle.COLOR_DARK_BLUE
  • RichTextStyle.COLOR_DARK_CYAN
  • RichTextStyle.COLOR_DARK_GREEN
  • RichTextStyle.COLOR_DARK_MAGENTA
  • RichTextStyle.COLOR_DARK_RED
  • RichTextStyle.COLOR_DARK_YELLOW
  • RichTextStyle.COLOR_GRAY
  • RichTextStyle.COLOR_GREEN
  • RichTextStyle.COLOR_LIGHT_GRAY
  • RichTextStyle.COLOR_MAGENTA
  • RichTextStyle.COLOR_RED
  • RichTextStyle.COLOR_WHITE
  • RichTextStyle.COLOR_YELLOW
  • RichTextStyle.STYLE_NO_CHANGE to maintain the previous state
  • RichTextStyle.MAYBE to maintain previous state

Example