FMX.Graphics.TTextSettings.AssignNotStyled

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure AssignNotStyled(const TextSettings: TTextSettings; const StyledSettings: TStyledSettings);

C++

void __fastcall AssignNotStyled(TTextSettings* const TextSettings, const Fmx::Types::TStyledSettings StyledSettings);

Properties

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

Description

Copies values of the styled text representation properties from the TextSettings object to the current TTextSettings object, ignoring properties specified in the StyledSettings parameter.

TextSettings -- This parameter specifies the TTextSettings type object storing the values of the styled text representation properties to copy. Styled text representation properties are: TFont.Family, TFont.Size, TFont.Style, FontColor, HorzAlign, VertAlign, Trimming, and WordWrap.

StyledSettings -- This parameter specifies the set of styled text representation properties, whose values in the TextSettings object should be ignored. StyledSettings can contain the following constants:

TStyledSetting Constant Corresponding TTextSettings Properties Meaning

Family

TFont.Family

Font name.

Size

TFont.Size

Font size.

Style

TFont.Style

Font style (italic, bold).

FontColor

FontColor

Font color.

Other

HorzAlign, VertAlign,
Trimming, and WordWrap.

How the text is aligned and displayed.


AssignNotStyled copies values of the styled text representation properties from the object specified by the TextSettings parameter to the current TTextSettings object, ignoring properties specified in the StyledSettings parameter:

  • If TextSettings specifies an existing TTextSettings type object:
    1. If StyledSettings keeps an empty set, then AssignNotStyled copies values of all styled text representation properties from the specified TextSettings text object. This alternative simply executes the Assign method.
    2. If StyledSettings keeps not an empty set, then AssignNotStyled copies the values of the styled text representation properties that are not specified in the StyledSettings parameter of the TextSettings object.
Then AssignNotStyled calls the EndUpdate method to execute the OnChanged event handler.
  • If TextSettings = nil, then AssignNotStyled uses the default values from a style to set the value of the styled text representation properties not specified in the StyledSettings parameter.

See Also