GetObjectPathNumberA
文件屬性、內容擷取
描述
結尾的 A 表示 ANSI(char)DLL 進入點;ActiveX/COM 介面只提供 Unicode 形式。行為與 GetObjectPathNumber 完全相同,字串參數依目前 SetAnsiMode 的字碼頁解讀
解析 pages[0]/MediaBox[2] 這類物件路徑,把數值分葉以 double 傳回,並附旗標指出分葉是否存在且為數值
語法
Delphi
Function DLGetObjectPathNumberA(InstanceID: Integer; Path: PAnsiChar; Var Found: Integer): Double;
DLL
double DLGetObjectPathNumberA(int InstanceID, const char* Path, int Var Found);
參數
| Path | 採用 GetObjectByPath 所接受語法的物件路徑 |
|---|---|
| Found | 解析出的分葉是數字時為 True |
傳回值
| 數值;路徑缺失或非數值時為 0 且 Found 為 False |
備註
頁面本身沒有帶這些屬性時,頁面字典查詢會從 /Parent 頁面節點繼承 MediaBox 或 Resources 等屬性
另請參閱
GetObjectByPath, GetObjectPathStream, GetObjectPathStreamLength