GetPageViewPortID
頁面屬性、量測與座標單位
描述
傳回所選頁面指定 viewport 的 ViewPortID 值
此值可搭配 GetViewPortName 與 GetViewPortMeasureDict 函式使用。可用 GetPageViewPortCount 函式判斷頁面上的 viewport 數量。
語法
Delphi
Function TPDFlib.GetPageViewPortID(Index: Integer): Integer;
ActiveX
Function PDFlib::GetPageViewPortID(Index As Long) As Long
DLL
int DLGetPageViewPortID(int InstanceID, int Index);
參數
| Index | viewport 的索引。頁面上第一個 viewport 的索引值為 1。 |
|---|
傳回值
| 0 | 找不到指定索引的 viewport |
|---|---|
| Non-zero | A ViewPortID value |