MergeTableCells

页面布局

描述

将指定表中的多个单元格合并为一个单元格

语法

Delphi

Function TPDFlib.MergeTableCells(TableID, FirstRow, FirstColumn, LastRow, LastColumn: Integer): Integer;

ActiveX

Function PDFlib::MergeTableCells(TableID As Long, FirstRow As Long, FirstColumn As Long, LastRow As Long, LastColumn As Long) As Long

DLL

int DLMergeTableCells(int InstanceID, int TableID, int FirstRow, int FirstColumn, int LastRow, int LastColumn);

参数

TableIDCreateTable 函数返回的 TableID
FirstRow要设置的第一行编号。顶部行的行号为 1
FirstColumn要设置的第一列列号,最左侧列的列号为 1
LastRow要设置的最后一行行号
LastColumn要设置的最后一列的列号

返回值

单元格合并为一个后返回 1。TableID 不是表格的标识或给定单元格矩形无法合并时返回 0。