TextSetFontColor @Command (Formula Language)

Displays selected or subsequently entered text using the specified color.

Syntax

@Command( [TextSetFontColor] ; [ color ] )

Parameters

[ color ]

The name of the color you want your text to be. The available colors are:

  • Black
  • Gray
  • Red
  • DarkRed
  • Green
  • DarkGreen
  • Blue
  • DarkBlue
  • Magenta
  • DarkMagenta
  • Yellow
  • Brown
  • Cyan
  • DarkCyan
  • White

Usage

  • A document must be open in Edit mode with the insertion point in a rich text field

    or

  • A form, subform, or page must be open in Design mode

It is most convenient to use a toolbar button to invoke this command if the text is already selected

This command does not work on the Web.

Examples

This formula sets the text color to dark cyan.
@Command([TextSetFontColor]; [DarkCyan])