FMX.Graphics.TTextSettings.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(const AOwner: TPersistent); virtual;

C++

__fastcall virtual TTextSettings(System::Classes::TPersistent* const AOwner);

Properties

Type Visibility Source Unit Parent
constructor public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TTextSettings

Description

Constructs a TTextSettings type object and initializes its data before the object is first used.

Create calls the inherited TPersistent.Create method, then sets Owner = AOwner and initializes all text representation properties with the default values:

Font.Size := 11 ;          // depends on platform     
Font.Family = 'Tahoma';    // depends on platform
Font.Style := [] ;
FontColor := TAlphaColorRec.Black;
HorzAlign := TTextAlign.Leading;
VertAlign := TTextAlign.Center;
Trimming := TTextTrimming.None;
WordWrap := False;

Finally, Create sets IsChanged and IsAdjustChanged to False.

See Also