GetObjectByPathCount

文件屬性、內容擷取

描述

傳回路徑運算式所解析節點的元素數量

語法

Delphi

Function TPDFlib.GetObjectByPathCount(Const Path: WideString): Integer;

參數

Path路徑運算式(文法請見 GetObjectByPath)。

傳回值

-1路徑無法解析。
0節點是純量。
N陣列長度,或字典/串流字典的條目數。

範例

for I:= 0 to PDF.GetObjectByPathCount('Root/Pages/Kids')- 1 do
  ShowMessage(PDF.GetObjectByPath('Root/Pages/Kids['+ IntToStr(I)+ ']/Type', 2));

另請參閱

GetObjectByPath, GetObjectCount