rvico TRichView Reference | Item Types | Table

TRVTableItemInfo.BackgroundImage

Top  Previous  Next

Background image for the table.

property BackgroundImage: TGraphic;

(introduced in v1.8)

Position of the image is defined by the BackgroundStyle property.Transparent images are supported.

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.BackgroundImage := bmp;

bmp.Free;

Example 2 (clearing the image)

table.BackgroundImage := nil;

 

See also:

Undo of assignments to table properties.

See also properties:

BackgroundStyle;

Color.

See also properties of table cell:

BackgroundImage;

BackgroundStyle.

See also properties of TRichView:

BackgroundBitmap;

BackgroundStyle.


TRichView © trichview.com