TextHighlighterTheme.Add (gb.highlight)

Function Add ( Key As String, Color As Integer [ , Bold As Boolean, Underline As Boolean, Dotted As Boolean ] ) As TextHighlighterStyle

Shortcut method for creating a style and associating it with a color name.

  • Key: The color name.

  • Color: The RGB color of the style.

  • Bold: If the text must be drawn bold.

  • Underline: If the text must be drawn with a solid underline.

  • Dotted: If the text must be drawn with a dotted underline.

The newly created style is returned.