SetTableCellBackgroundColor

Colour, Page layout

Description

Sets the background colour of one or more cells using the RGB colour space.

Syntax

Delphi

function TPDFlib.SetTableCellBackgroundColor(TableID, FirstRow, FirstColumn, LastRow, LastColumn: Integer; Red, Green, Blue: Double): Integer;

ActiveX

Function PDFlib::SetTableCellBackgroundColor(TableID As Long, FirstRow As Long, FirstColumn As Long, LastRow As Long, LastColumn As Long, Red As Double, Green As Double, Blue As Double) As Long

DLL

int DLSetTableCellBackgroundColor(int InstanceID, int TableID, int FirstRow, int FirstColumn, int LastRow, int LastColumn, double Red, double Green, double Blue);

Parameters

TableIDA TableID returned by the CreateTable function
FirstRowThe the number of the first row to set. Top row is row number 1.
FirstColumnThe the number of the first column to set. Left most column is column number 1.
LastRowThe number of the final row to set
LastColumnThe number of the final column to set The red component of the colour, a value from 0 to 1
Red
GreenThe green component of the colour, a value from 0 to 1
BlueThe blue component of the colour, a value from 0 to 1