FMX.Graphics.TTextSettings.BeginUpdate
Delphi
procedure BeginUpdate;
C++
void __fastcall BeginUpdate();
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TTextSettings |
説明
現在の TTextSettings オブジェクトのスタイル付きテキスト表現プロパティの更新のうち、開始はされたがまだ完了していないものの、UpdateCount 数を 1 つ増加させます。
複数のスタイル付きテキスト表現プロパティを一度に変更するが、各プロパティが変更されるたびに TTextSettings オブジェクトのビジュアル表現を再描画したくない場合には、BeginUpdate を EndUpdate と一緒に使用します。 次のようなコードを使用できます:
TextSettings.BeginUpdate; try TextSettings.FontColor := MyColor; TextSettings.Trimming := True; ... finally TextSettings.EndUpdate; end;