Translates a string representation of a color to the corresponding TColor value.
function StringToColor(const S: string): TColor;
TColor StringToColor(const AnsiString S);
Graphics
Call StringToColor to reverse the translation performed by ColorToString. This method is useful for converting the strings entered by the user into useable TColor values.
The S parameter can be either the name of a built-in color constant, such as "clBtnFace" (Windows) or "clBtnText" (cross-platform), or the string representation of a valid TColor value such as "$02FF8800" (Delphi) or "0x02FF8800" (C++). StringToColor returns the TColor value that corresponds to the S parameter.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|