TTMSFNCDataGridRenderer.GetCellObjectForCell Method
Returns the live cell object currently in the display list for
ACell, or nil if the cell is not visible.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Syntax
function GetCellObjectForCell(ACell: TTMSFNCDataGridCellCoord): TTMSFNCDataGridCell;
TTMSFNCDataGridCell* __fastcall GetCellObjectForCell(const TTMSFNCDataGridCellCoord &ACell);
Remarks
The object is owned by the grid and recycled when the display is rebuilt (scrolling, resizing, data changes). Do not free it and do not keep a reference to it beyond the current call.
Parameters
| Name | Description |
|---|---|
ACell |
Cell coordinate to look up in the current display list. |
Returns
The visible cell object, or nil if the cell is not currently displayed or either index is -1.