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.

Visibility, size, position and repetition of the image is defined in the BackgroundProperties property.Transparent images are supported.

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;

BackgroundProperties;

Color.

See also properties of table:

BackgroundImage;

BackgroundProperties.

See also properties of TRichView:

BackgroundPicture;

BackgroundProperties.