TTMSFNCDataGridRenderer.CreateCell Method
Creates a standalone
TTMSFNCDataGridCellatARectfor the given cell coordinate. The caller owns the returned object and must free it.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Overloads
Overload 1
Creates a standalone
TTMSFNCDataGridCellatARectfor the given cell coordinate. The caller owns the returned object and must free it.
function CreateCell(ARect: TRectF; ACell: TTMSFNCDataGridCellCoord): TTMSFNCDataGridCell; overload;
TTMSFNCDataGridCell* __fastcall CreateCell(const System::Types::TRectF &ARect, const TTMSFNCDataGridCellCoord &ACell)/* overload */;
Remarks
The returned object is not part of the display list and is not painted by the grid. To access the cell that is currently on screen, use GetCellObjectForCell.
Parameters
| Name | Description |
|---|---|
ARect |
Bounds of the cell object in device-independent pixels. |
ACell |
Cell coordinate represented by the new object. |
Returns
A new cell object of the class resolved for the coordinate (including any class supplied by OnGetCellClass), or nil when no cell class is resolved.
Overload 2
Creates a standalone
TTMSFNCDataGridCellatARectfor the given column/row. The caller owns the returned object and must free it.
function CreateCell(ARect: TRectF; AColumn: Integer; ARow: Integer): TTMSFNCDataGridCell; overload;
TTMSFNCDataGridCell* __fastcall CreateCell(const System::Types::TRectF &ARect, int AColumn, int ARow)/* overload */;
Parameters
| Name | Description |
|---|---|
ARect |
Bounds of the cell object in device-independent pixels. |
AColumn |
Zero-based column index represented by the new object. |
ARow |
Zero-based row index represented by the new object. |
Returns
A new cell object of the class resolved for the coordinate (including any class supplied by OnGetCellClass), or nil when no cell class is resolved.