Show: Delphi C++
Display Preferences

FMX.Types.TCanvas.FillText

From XE2 API Documentation
Jump to: navigation, search

Delphi

procedure FillText(const ARect: TRectF; const AText: string; const WordWrap: Boolean; const AOpacity: Single;  const Flags: TFillTextFlags; const ATextAlign: TTextAlign; const AVTextAlign: TTextAlign = TTextAlign.taCenter);

C++

virtual void __fastcall FillText(const System::Types::TRectF &ARect, const System::UnicodeString AText, const bool WordWrap, const float AOpacity, const TFillTextFlags Flags, const TTextAlign ATextAlign, const TTextAlign AVTextAlign = (TTextAlign)(0x0)) = 0 ;

Contents

Properties

Type Visibility Source Unit Parent
procedure
function
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types TCanvas

Description

Displays a text string on a specified rectangle area of the current TCanvas.

FillText is implemented by the TCanvas descendants to display a text string with the specified alignment, current font, and brush specified by the Fill and Font properties. The text is displayed in a specified rectangle area of the current TCanvas.

The ARect parameter specifies the rectangle area where the text is displayed.

The AText parameter specifies the text to display.

The WordWrap parameter specifies the word wrapping option. If it is True, it indicates that words are broken across lines to avoid text overflowing the layout box. If it is set to False, it indicates that words are kept within the same line even when the text overflows the layout box.

The AOpacity parameter specifies the transparency of the Fill color.

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 taCenter.

See Also

Code Examples

Personal tools
Previous Versions
Translations