TTMSFNCDataGridRenderer.SetBitmap Method
Turns the cell into a bitmap cell that displays a copy of
ABitmap.
API unit family: TMSFNCDataGridRenderer
Declaring type: TTMSFNCDataGridRenderer
Overloads
Overload 1
Turns the cell into a bitmap cell that displays a copy of
ABitmap.
procedure SetBitmap(ACell: TTMSFNCDataGridCellCoord; ABitmap: TTMSFNCBitmap); overload;
void __fastcall SetBitmap(TTMSFNCDataGridCellCoord ACell, TTMSFNCBitmap* ABitmap);
Remarks
Use BitmapAligns, BitmapWidths and related properties to size and position the image. AddBitmap is an alias.
Parameters
| Name | Description |
|---|---|
ACell |
Cell coordinate that receives the bitmap. Invalid coordinates are ignored. |
ABitmap |
Bitmap to display. It is copied with Assign, so the caller keeps ownership of the instance. |
Overload 2
Turns the cell into a bitmap cell that displays the bitmap named
ANamefrom BitmapContainer.
procedure SetBitmap(ACell: TTMSFNCDataGridCellCoord; AName: string); overload;
void __fastcall SetBitmap(TTMSFNCDataGridCellCoord ACell, System::UnicodeString AName);
Parameters
| Name | Description |
|---|---|
ACell |
Cell coordinate that receives the bitmap. Invalid coordinates are ignored. |
AName |
Name of the item in the bitmap container. The name is resolved when the cell is painted. |
Overload 3
Turns the cell at (
AColumn,ARow) into a bitmap cell that displays a copy ofABitmap.
procedure SetBitmap(AColumn, ARow: Integer; ABitmap: TTMSFNCBitmap); overload;
void __fastcall SetBitmap(int AColumn, int ARow, TTMSFNCBitmap* ABitmap);
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index. |
ARow |
Zero-based row index. |
ABitmap |
Bitmap to display. It is copied, so the caller keeps ownership of the instance. |
Overload 4
Turns the cell at (
AColumn,ARow) into a bitmap cell that displays the bitmap namedANamefrom BitmapContainer.
procedure SetBitmap(AColumn, ARow: Integer; AName: string); overload;
void __fastcall SetBitmap(int AColumn, int ARow, System::UnicodeString AName);
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index. |
ARow |
Zero-based row index. |
AName |
Name of the item in the bitmap container. |