SetTableBorderColor

颜色、页面布局

描述

使用 RGB 色彩空间设置指定表格边框的颜色

语法

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);

参数

TableID由 CreateTable 函数返回的 TableID
BorderIndex0 = 所有边框 1 = 左边 2 = 上边 3 = 右边 4 = 下边
Red颜色的红色分量,取值范围为 0 到 1
Green颜色的绿色分量,值为 0 到 1
Blue颜色的蓝色分量,值范围为 0 到 1

返回值

1颜色或宽度已应用到所选的表格边框
0TableID 不是有效表格,或 BorderIndex 超出 0 到 4 的范围