TRVTableCellData.BackgroundImage

<< Click to display table of contents >>

TRVTableCellData.BackgroundImage

Background image for the table cell

property BackgroundImage: TRVGraphic;

(introduced in v1.8)

Assignment to this property copies the image, so you still need to free the source image yourself.

Rarely used images may be "deactivated", i.e. stored in a memory stream and destroyed (see RichViewMaxPictureCount).

Example 1 (assigning image):

bmp := TBitmap.Create;

bmp.LoadFromFile('c:\image.bmp');

table.Cells[r,c].BackgroundImage := bmp;

bmp.Free;

Example 2 (clearing the image):

table.Cells[r,c].BackgroundImage := nil;

 

See also properties:

BackgroundImageFileName;

BackgroundStyle;

Color.

See also properties of table:

BackgroundImage;

BackgroundStyle.

See also properties of TRichView:

BackgroundBitmap;

BackgroundStyle.