FMX.Graphics.TTextSettings.BeginUpdate

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure BeginUpdate;

C++

void __fastcall BeginUpdate();

プロパティ

種類 可視性 ソース ユニット
procedure
function
public
FMX.Graphics.pas
FMX.Graphics.hpp
FMX.Graphics TTextSettings

説明

現在の TTextSettings オブジェクトのスタイル付きテキスト表現プロパティの更新のうち、開始はされたがまだ完了していないものの、UpdateCount 数を 1 つ増加させます。

複数のスタイル付きテキスト表現プロパティを一度に変更するが、各プロパティが変更されるたびに TTextSettings オブジェクトのビジュアル表現を再描画したくない場合には、BeginUpdateEndUpdate と一緒に使用します。 次のようなコードを使用できます:

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

関連項目