GetPageViewPortID

页面属性、测量和坐标单位

描述

返回所选页面指定视口的 ViewPortID 值

此值可与 GetViewPortName 和 GetViewPortMeasureDict 函数一起使用,使用 GetPageViewPortCount 函数确定页面上的视口数量

语法

Delphi

Function TPDFlib.GetPageViewPortID(Index: Integer): Integer;

ActiveX

Function PDFlib::GetPageViewPortID(Index As Long) As Long

DLL

int DLGetPageViewPortID(int InstanceID, int Index);

参数

Index视口的索引。页面上的第一个视口索引值为 1

返回值

0找不到指定索引处的视口
Non-zeroViewPortID 值