Vcl.Grids.TDrawGrid.OnGetEditText
Delphi
property OnGetEditText: TGetEditEvent read FOnGetEditText write FOnGetEditText;
C++
__property OnGetEditText;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
event | published | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TDrawGrid |
説明
インプレースエディタがセルの値を要求したときに発生します。
Vcl.Grids.TDrawGrid.OnGetEditText は Vcl.Grids.TCustomDrawGrid.OnGetEditText を継承しています。以下の内容はすべて Vcl.Grids.TCustomDrawGrid.OnGetEditText を参照しています。
インプレースエディタがセルの値を要求したときに発生します。
OnGetEditText イベントハンドラを記述すると,セルの内容を表す文字列をインプレースエディタに提供できます。Value パラメータを,ACol および ARow パラメータによって指定されるセルの文字列に設定します。セルが編集モードになると,セルの内容は OnGetEditText イベントハンドラによって返される Value 文字列として描画されます。このイメージは,編集モードでないときのセルの体裁と一致する必要はなく,OnDrawCell イベントハンドラを使って描画されます。
OnGetEditText イベントは,Options プロパティで goEditing オプションが設定されていない限り発生しません。