Vcl.DBGrids.TCustomDBGrid.HighlightCell
Delphi
function HighlightCell(DataCol, DataRow: Integer; const Value: string; AState: TGridDrawState): Boolean; virtual;
C++
virtual bool __fastcall HighlightCell(int DataCol, int DataRow, const System::UnicodeString Value, Vcl::Grids::TGridDrawState AState);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
説明
指定したセルを強調表示すべきかどうかを指定します。
アプリケーションはこのプロテクトメソッドを呼び出すことはできません。HighlightCell は,DataCol および DataRow パラメータで指定したセルを強調表示しなければならないかどうかを DrawCell メソッドが判断するときに内部的に呼び出されます。セルにフォーカスがあって選択されており,かつ Options に dgAlwaysShowSelection が設定されている場合,あるいはセルが選択された行にあって Options に dgRowSelect が設定されている場合,HighlightCell は true を返します。