Unit 'Graphics' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#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 1967

function StringToColorDef(

  const S: shortstring;

  const DefaultValue: TColor

):TColor;



CT Web help

CodeTyphon Studio