SetTableCellAlignment
页面布局
描述
设置一个或多个单元格的垂直和水平对齐方式
语法
Delphi
Function TPDFlib.SetTableCellAlignment(TableID, FirstRow, FirstColumn, LastRow, LastColumn, NewCellAlignment: Integer): Integer;
ActiveX
Function PDFlib::SetTableCellAlignment(TableID As Long, FirstRow As Long, FirstColumn As Long, LastRow As Long, LastColumn As Long, NewCellAlignment As Long) As Long
DLL
int DLSetTableCellAlignment(int InstanceID, int TableID, int FirstRow, int FirstColumn, int LastRow, int LastColumn, int NewCellAlignment);
参数
| TableID | 由 CreateTable 函数返回的 TableID |
|---|---|
| FirstRow | 要设置的第一行行号,最上方一行为第 1 行 |
| FirstColumn | 要设置的第一列列号,最左侧列的列号为 1 |
| LastRow | 要设置的最后一行行号 |
| LastColumn | 要设置的最后一列的列号 |
| NewCellAlignment | 0 = 左上 1 = 上中 2 = 右上 3 = 左中 4 = 中心 5 = 右中 6 = 左下 7 = 下中 8 = 右下 int NewCellAlignment) |