SetTableCellBorderColor

Color, Page layout

Description

Sets the color of one or more cell borders using the RGB color space.

Syntax

Delphi

Function TPDFlib.SetTableCellBorderColor(TableID, FirstRow, FirstColumn, LastRow, LastColumn, BorderIndex: Integer; Red, Green, Blue: Double): Integer;

ActiveX

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

DLL

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

Parameters

TableIDA TableID returned by the CreateTable function
FirstRowThe number of the first row to set. Top row is row number 1.
FirstColumnThe 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
BorderIndex0 = All borders 1 = Left 2 = Top 3 = Right 4 = Bottom
RedThe red component of the color, a value from 0 to 1
GreenThe green component of the color, a value from 0 to 1
BlueThe blue component of the color, a value from 0 to 1

Return values

1The colour was applied to the selected cell borders
0TableID is not a valid table, the row or column range is outside the table, or BorderIndex is outside 0 through 4