FMX.Graphics.TTextSettings.Assign
Delphi
procedure Assign(Source: TPersistent); override;
C++
virtual void __fastcall Assign(System::Classes::TPersistent* Source);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TTextSettings |
Description
Copies the values of the styled text representation properties of the specified Source object to the current TTextSettings object.
Assign copies the styled text representation properties of the object specified by the Source parameter to the current TTextSettings object:
- If Source is a TTextSettings type object, then Assign sets the values of the TFont, FontColor, HorzAlign, VertAlign, Trimming, and WordWrap parameters of the current TTextSettings object equal to the corresponding parameters of the Source object.
- If Source
= nil
, then Assign creates the default TFont and initialize the following default parameters:
FontColor := TAlphaColorRec.Black;
HorzAlign := TTextAlign.Leading;
VertAlign := TTextAlign.Center;
Trimming := TTextTrimming.None;
WordWrap := False;
- If Source is not a TTextSettings type object, then Assign calls the inherited System.Classes.TPersistent.Assign method and raises the appropriate EConvertError exception.