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

StringToColor

StringToColor - given a color name like 'clBlue', returns the corresponding color value.

Declaration

Source position: graphics.pp line 1937

function StringToColor(

  const S: shortstring

):TColor;

Arguments

S

  

S - the name of the required color, expressed as a string.

Function result

Returns the color corresponding to the name in String S.


Version 3.2 Generated 2024-02-25 Home