[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

StringToColorDef

Converts a color name, like "clBlue", to a TColor value with an optional default value when the color name does not exist.

Declaration

Source position: graphics.pp line 1906

function StringToColorDef(

  const S: shortstring;

  const DefaultValue: TColor

):TColor;

The latest version of this document can be found at lazarus-ccr.sourceforge.net.