InsertTableRows
页面布局
描述
在任意位置向指定表格添加行
语法
Delphi
Function TPDFlib.InsertTableRows(TableID, Position, NewRowCount: Integer): Integer;
ActiveX
Function PDFlib::InsertTableRows(TableID As Long, Position As Long, NewRowCount As Long) As Long
DLL
int DLInsertTableRows(int InstanceID, int TableID, int Position, int NewRowCount);
参数
| TableID | 由 CreateTable 函数返回的 TableID |
|---|---|
| Position | 插入新行的位置。最小值为 1。最大值比 GetTableRowCount 函数返回的值大 1 |
| NewRowCount | 要添加到表格的行数 |
返回值
| 0 | 无法添加行。请检查 TableID 参数并确保 NewRowCount 大于或等于 1。Position 参数也必须在范围内 |
|---|---|
| Non-zero | 添加新行后表中的总行数 |