FMX.Graphics.TTextSettings.BeginUpdate

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure BeginUpdate;

C++

void __fastcall BeginUpdate(void);

Properties

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

Description

Increases by one the UpdateCount number of started and not accomplished updates of styled text representation properties of the current TTextSettings object.

You can use BeginUpdate together with EndUpdate if you need to change several styled text representation properties at once and do not want to redraw the visual representation of the TTextSettings object after each property is changed. You can use the code like this:

TextSettings.BeginUpdate;
try
  TextSettings.FontColor := MyColor;
  TextSettings.Trimming := True;
  ...
finally
  TextSettings.EndUpdate;
end;

See Also