FMX.Text.TTextService.DrawSingleLine
Delphi
procedure DrawSingleLine(const Canvas: TCanvas;
const ARect: TRectF; const FirstVisibleChar: integer; const Font: TFont;
const AOpacity: Single; const Flags: TFillTextFlags; const ATextAlign: TTextAlign;
const AVTextAlign: TTextAlign = TTextAlign.Center;
const AWordWrap: Boolean = False); overload; virtual; abstract;
procedure DrawSingleLine(const Canvas: TCanvas; const S: string;
const ARect: TRectF; const Font: TFont;
const AOpacity: Single; const Flags: TFillTextFlags; const ATextAlign: TTextAlign;
const AVTextAlign: TTextAlign = TTextAlign.Center;
const AWordWrap: Boolean = False); overload; virtual; abstract;
C++
virtual void __fastcall DrawSingleLine(Fmx::Graphics::TCanvas* const Canvas, const System::Types::TRectF &ARect, const int FirstVisibleChar, Fmx::Graphics::TFont* const Font, const float AOpacity, const Fmx::Graphics::TFillTextFlags Flags, const Fmx::Types::TTextAlign ATextAlign, const Fmx::Types::TTextAlign AVTextAlign = (Fmx::Types::TTextAlign)(0x0), const bool AWordWrap = false) = 0 /* overload */;
virtual void __fastcall DrawSingleLine(Fmx::Graphics::TCanvas* const Canvas, const System::UnicodeString S, const System::Types::TRectF &ARect, Fmx::Graphics::TFont* const Font, const float AOpacity, const Fmx::Graphics::TFillTextFlags Flags, const Fmx::Types::TTextAlign ATextAlign, const Fmx::Types::TTextAlign AVTextAlign = (Fmx::Types::TTextAlign)(0x0), const bool AWordWrap = false) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Text.pas FMX.Text.hpp |
FMX.Text | TTextService |
Description
Strikes through the manipulated text.
DrawSingleLine is implemented by descendants of TTextService in order to draw a line over the manipulated text.
The Canvas
parameter specifies the rectangle area.
The ARect
parameter specifies the rectangle area that frames the text.
The FirstVisibleChar
parameter specifies an integer representing the start position for the drawing.
The Font
parameter specifies the Font for the text.
The AOpacity
parameter specifies the opacity for the text.
The Flags
parameter specifies the reading direction of AText
.
ATextAlign
is the horizontal alignment of the text within ARect
.
AVTextAlign
is the vertical alignment of the text within ARect
. AVTextAlign
is optional. By default, it is set to Center
.