InsertTableColumns

页面布局

描述

在任意位置向指定表格添加列

语法

Delphi

Function TPDFlib.InsertTableColumns(TableID, Position, NewColumnCount: Integer): Integer;

ActiveX

Function PDFlib::InsertTableColumns(TableID As Long, Position As Long, NewColumnCount As Long) As Long

DLL

int DLInsertTableColumns(int InstanceID, int TableID, int Position, int NewColumnCount);

参数

TableIDCreateTable 函数返回的 TableID 插入新列的位置。最小值为 1。最大值比 GetTableColumnCount 函数返回值大一
Position
NewColumnCount要添加到表格中的列数

返回值

0无法添加列,请检查 TableID 参数并确保 NewColumnCount 大于或等于 1,Position 参数也必须在范围内
Non-zero添加新列后表格中的列总数