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 函式傳回值加一。 |
| NewRowCount | 要加入表格的列數 |
傳回值
| 0 | 無法加入列。請檢查 TableID 參數,並確認 NewRowCount 大於等於 1;Position 參數也必須在範圍內。 |
|---|---|
| Non-zero | 加入新列之後表格的總列數。 |