TTMSFNCDataGrid.AddBitmap Method
Turns a cell into a bitmap cell that displays the given bitmap.
API unit family: TMSFNCDataGrid
Declaring type: TTMSFNCDataGrid
Inherited from: TTMSFNCCustomDataGrid
Overloads
Overload 1
Turns a cell into a bitmap cell that displays the given bitmap.
procedure AddBitmap(ACell: TTMSFNCDataGridCellCoord; ABitmap: TTMSFNCBitmap); overload;
void __fastcall AddBitmap(const TTMSFNCDataGridCellCoord &ACell, TTMSFNCBitmap* ABitmap)/* overload */;
Remarks
Same as SetBitmap. Size and placement are controlled through BitmapWidths, BitmapHeights, BitmapAligns and related properties.
Parameters
| Name | Description |
|---|---|
ACell |
Target cell coordinate. Invalid coordinates are ignored. |
ABitmap |
Bitmap to display in the cell. |
Overload 2
Turns a cell into a bitmap cell that displays a named bitmap from BitmapContainer.
procedure AddBitmap(ACell: TTMSFNCDataGridCellCoord; AName: string); overload;
void __fastcall AddBitmap(const TTMSFNCDataGridCellCoord &ACell, System::UnicodeString AName)/* overload */;
Parameters
| Name | Description |
|---|---|
ACell |
Target cell coordinate. Invalid coordinates are ignored. |
AName |
Name of the bitmap in the bitmap container; resolved when the cell is drawn. |
Overload 3
Turns the cell at the given column and row into a bitmap cell that displays the given bitmap.
procedure AddBitmap(AColumn, ARow: Integer; ABitmap: TTMSFNCBitmap); overload;
void __fastcall AddBitmap(int AColumn, int ARow, TTMSFNCBitmap* ABitmap)/* overload */;
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index. |
ARow |
Zero-based row index. |
ABitmap |
Bitmap to display in the cell. |
Overload 4
Turns the cell at the given column and row into a bitmap cell that displays a named bitmap from BitmapContainer.
procedure AddBitmap(AColumn, ARow: Integer; AName: string); overload;
void __fastcall AddBitmap(int AColumn, int ARow, System::UnicodeString AName)/* overload */;
Parameters
| Name | Description |
|---|---|
AColumn |
Zero-based column index. |
ARow |
Zero-based row index. |
AName |
Name of the bitmap in the bitmap container; resolved when the cell is drawn. |