FMX.Controls.TTextSettingsInfo.TCustomTextSettings.Create
Delphi
constructor Create(const AOwner: TPersistent); override;
C++
__fastcall virtual TCustomTextSettings(System::Classes::TPersistent* const AOwner);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | FMX.Controls.pas FMX.Controls.hpp |
FMX.Controls | TCustomTextSettings |
Description
Constructs a TTextSettings type object and initializes its data before the object is first used.
FMX.Controls.TTextSettingsInfo.TCustomTextSettings.Create inherits from FMX.Graphics.TTextSettings.Create. All content below this line refers to FMX.Graphics.TTextSettings.Create.
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
.