API:Vcl.Grids.TCustomDrawGrid.CellRect
Delphi
function CellRect(ACol, ARow: Longint): TRect;
C++
HIDESBASE System::Types::TRect __fastcall CellRect(int ACol, int ARow);
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | Vcl.Grids.pas Vcl.Grids.hpp |
Vcl.Grids | TCustomDrawGrid |
Beschreibung
Gibt die Bildschirmkoordinaten einer Zelle im Gitter zurück.
Vcl.Grids.TCustomDrawGrid.CellRect erbt von Vcl.Grids.TCustomGrid.CellRect. Der folgende Inhalt bezieht sich auf Vcl.Grids.TCustomGrid.CellRect.
Gibt die Bildschirmkoordinaten einer Zelle im Gitter zurück.
Mit CellRect können Sie das umgebende Rechteck (in Pixel) der Gitterzelle an der Position ACol und ARow abrufen. Enthalten ACol und ARow Null, ist die linke obere Zelle ausgewählt.
Ist die angegebene Zelle nicht sichtbar, gibt CellRect ein leeres Rechteck zurück.