Vcl.DBGrids.TCustomDBGrid.HighlightCell

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

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 を返します。

関連項目