SetTableBorderColor

Colour, Page layout

Description

Sets the colour of the specified table border using the RGB colour space.

Syntax

Delphi

Function TPDFlib.SetTableBorderColor(TableID, BorderIndex: Integer; Red, Green, Blue: Double): Integer;

ActiveX

Function PDFlib::SetTableBorderColor(TableID As Long, BorderIndex As Long, Red As Double, Green As Double, Blue As Double) As Long

DLL

int DLSetTableBorderColor(int InstanceID, int TableID, int BorderIndex, double Red, double Green, double Blue);

Parameters

TableIDA TableID returned by the CreateTable function
BorderIndex0 = All borders 1 = Left 2 = Top 3 = Right 4 = Bottom
RedThe red component of the colour, a value from 0 to 1
GreenThe green component of the colour, a value from 0 to 1
BlueThe blue component of the colour, a value from 0 to 1

Return values

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