SetTableCellBorderWidth

页面布局

描述

设置一个或多个单元格边框的宽度

语法

Delphi

Function TPDFlib.SetTableCellBorderWidth(TableID, FirstRow, FirstColumn, LastRow, LastColumn, BorderIndex: Integer; NewWidth: Double): Integer;

ActiveX

Function PDFlib::SetTableCellBorderWidth(TableID As Long, FirstRow As Long, FirstColumn As Long, LastRow As Long, LastColumn As Long, BorderIndex As Long, NewWidth As Double) As Long

DLL

int DLSetTableCellBorderWidth(int InstanceID, int TableID, int FirstRow, int FirstColumn, int LastRow, int LastColumn, int BorderIndex, double NewWidth);

参数

TableID由 CreateTable 函数返回的 TableID
FirstRow要设置的第一行行号,最上方一行为第 1 行
FirstColumn要设置的第一列列号,最左侧列的列号为 1
LastRow要设置的最后一行行号
LastColumn要设置的最终列编号
BorderIndex0 = 所有边框 1 = 左 2 = 上 3 = 右 4 = 下
NewWidth指定边框的新宽度

返回值

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