Vcl.Graphics.ColorToString
Delphi
function ColorToString(Color: TColor): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall ColorToString(System::Uitypes::TColor Color);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | Vcl.Graphics |
Description
Returns a string that represents the name of a TColor value.
Call ColorToString to obtain a string that represents a TColor value. If there is a symbolic constant defined for the color (such as clBlack or clHighlightText), ColorToString returns the name of the constant. Otherwise, ColorToString returns the hex value of the color, formatted as a string such as "$02FF8800" (Delphi) or "0x02FF8800" (C++).