Vcl.Themes.TCustomStyleServices.DrawText

提供: RAD Studio API Documentation
移動先: 案内検索

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

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.Themes.pas
Vcl.Themes.hpp
Vcl.Themes TCustomStyleServices


説明

要素上に、現在のスタイルでテキストを描画します。

DrawText を呼び出すと、S 文字列を、R で指定された四角形の中に、描画することができます。S 文字列には、Flags および Options の各パラメータで指定できる、書式および任意のオプションがあります。描画は、現在のスタイルの設定に従って実行されます。

メモ: この関数の最初のオーバーロードは廃止予定です。テキストの書式を指定するには、TTextFormat を使用する次の 2 つのオーバーロードを使用してください。

関連項目