Vcl.Themes.TCustomStyleServices.DrawText

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function DrawText(DC: HDC; Details: TThemedElementDetails; const S: string;  R: TRect; Flags, Flags2: Cardinal; DPI: Integer = 0): Boolean; overload; inline; deprecated 'Use DrawText with TTextFormat';
function DrawText(DC: HDC; Details: TThemedElementDetails;  const S: string; var R: TRect; Flags: TTextFormat; Color: TColor = clNone; DPI: Integer = 0): Boolean; overload;
function DrawText(DC: HDC; Details: TThemedElementDetails;  const S: string; var R: TRect; Flags: TTextFormat; Options: TStyleTextOptions; DPI: Integer = 0): Boolean; overload;

C++

bool __fastcall DrawText _DEPRECATED_ATTRIBUTE1("Use DrawText with TTextFormat") (HDC DC, const TThemedElementDetails &Details, const System::UnicodeString S, const System::Types::TRect &R, unsigned Flags, unsigned Flags2, int DPI = 0x0)/* overload */;
bool __fastcall DrawText(HDC DC, const TThemedElementDetails &Details, const System::UnicodeString S, System::Types::TRect &R, Vcl::Graphics::TTextFormat Flags, System::Uitypes::TColor Color = (System::Uitypes::TColor)(0x1fffffff), int DPI = 0x0)/* overload */;
bool __fastcall DrawText(HDC DC, const TThemedElementDetails &Details, const System::UnicodeString S, System::Types::TRect &R, Vcl::Graphics::TTextFormat Flags, const TStyleTextOptions &Options, int DPI = 0x0)/* overload */;

Propriétés

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


Description

Dessine du texte sur un élément, en utilisant le style en cours.

Appelez DrawText pour dessiner la chaîne S dans le rectangle spécifié par R. La chaîne S a le format et les options supplémentaires indiqués par les paramètres Flags et Options. Le dessin est effectué avec les paramètres du style en cours.

Remarque : La première surcharge de cette fonction est obsolète. Utilisez les deux surcharges suivantes qui utilisent TTextFormat afin de spécifier le formatage du texte.

Voir aussi