Vcl.Themes.TCustomStyleServices.DrawText

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
Vcl.Themes.pas
Vcl.Themes.hpp
Vcl.Themes TCustomStyleServices


Beschreibung

Zeichnet Text über ein Element mit dem aktuellen Stil.

Mit DrawText können Sie den in S angegebenen String in dem in R angegebenen Rechteck zeichnen. Das Format und die weiteren Optionen des in S angegebenen Strings werden in den Parametern Flags bzw. Options angegebenen. Das Zeichnen wird mit den Einstellungen des aktuellen Stils ausgeführt.

Hinweis: Die erste Überladung dieser Funktion ist veraltet. Verwenden Sie die folgenden zwei Überladungen, die die Textformatierung mit Hilfe von TTextFormat angeben.

Siehe auch