CreateTable
頁面版面
描述
建立指定列數與欄數的表格。先用其他表格函式設定表格,再用 DrawTableRows 把表格畫到頁面上
語法
Delphi
Function TPDFlib.CreateTable(RowCount, ColumnCount: Integer): Integer;
ActiveX
Function PDFlib::CreateTable(RowCount As Long, ColumnCount As Long) As Long
DLL
int DLCreateTable(int InstanceID, int RowCount, int ColumnCount);
參數
| RowCount | 新表格應有的列數 |
|---|---|
| ColumnCount | 新表格應有的欄數。 |
傳回值
| 0 | 無法建立表格。列數與欄數必須大於等於 1。 |
|---|---|
| Non-zero | TableID,可搭配其他表格函式使用。 |