DrawTableRows

頁面版面

描述

把指定表格的多列繪製到所選頁面,並傳回已繪列的總高度

只會繪製放得進指定高度的列數。請使用

用 GetTableLastDrawnRow 函式判斷最後一列的列號

此函式的傳回值會依 SetMeasurementUnits 函式設定的目前座標系統設定縮放

語法

Delphi

Function TPDFlib.DrawTableRows(TableID: Integer; Left, Top, Height: Double; FirstRow, LastRow: Integer): Double;

ActiveX

Function PDFlib::DrawTableRows(TableID As Long, Left As Double, Top As Double, Height As Double, FirstRow As Long, LastRow As Long) As Double

DLL

double DLDrawTableRows(int InstanceID, int TableID, double Left, double Top, double Height, int FirstRow, int LastRow);

參數

TableID由 CreateTable 函式傳回的 TableID
Left從原點到表格左緣的水平距離
Top從原點到表格頂部的垂直距離 可用來繪製表格的最大高度
Height
FirstRow要繪製的第一列列號。最上面的列為第 1 列。
LastRow0 = 其餘所有列 非零 = 要設定的最後一列列號

傳回值

0No rows were drawn
Non-zero畫到頁面上所有列的總高度。

備註

表格標記開啟時(見 SetAutoTagMode),表格及其列與儲存格會在繪製的同時帶進結構樹。