Afficher : Delphi C++
Préférences d'affichage

Vcl.Graphics.ColorToString

De XE2 API Documentation

Delphi

function ColorToString(Color: TColor): string;

C++

extern PACKAGE System::UnicodeString __fastcall ColorToString(System::Uitypes::TColor Color);

Propriétés

Type Visibilité  Source Unité  Parent
function public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics Vcl.Graphics

Description

Renvoie une chaîne représentant le nom de la valeur TColor.

Appelez ColorToString pour obtenir une chaîne représentant une valeur TColor. S'il existe une constante symbolique pour la couleur (telle que clBlack ou clHighlightText), ColorToString renvoie le nom de la constante. Sinon, ColorToString renvoie la valeur hexadécimale de la couleur sous forme d'une chaîne comme "$02FF8800" (Delphi) ou "0x02FF8800" (C++).

Voir aussi

Versions précédentes
Traductions