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

StringToColor

StringToColor - given a colour name like 'Blue', returns the corresponding colour value

Declaration

Source position: graphics.pp line 1882

function StringToColor(

  const S: shortstring

):TColor;

Arguments

S

  

S - the name of the required colour, expressed as a string

Function result

Returns the colour corresponding to the name in String S

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