API:Vcl.Grids.TCustomDrawGrid.CellRect

提供:RAD Studio API Documentation

Delphi

function CellRect(ACol, ARow: Longint): TRect;

C++

HIDESBASE System::Types::TRect __fastcall CellRect(int ACol, int ARow);

プロパティ

種類 可視性 ソース ユニット
function public
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomDrawGrid

説明

セルの画面座標値を返します。 {{#multireplace:Vcl.Grids.TCustomDrawGrid.CellRect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} は {{#multireplace:Vcl.Grids.TCustomGrid.CellRect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を継承しています。以下の内容はすべて {{#multireplace:Vcl.Grids.TCustomGrid.CellRect|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} を参照しています。

セルの画面座標値を返します。

CellRect メソッドを呼び出すと,ACol および ARow パラメータで指定された行と列のセルの境界をピクセル単位で取得できます。ACol と ARow が 0 の場合,左上のセルが指定されたことになります。

指定したセルが表示されない場合,CellRect は空の四角形を返します。

関連項目