GetObjectByPathCount

Document properties, Content Extraction

Mô tả

Trả về số phần tử của node mà một biểu thức path phân giải tới

Cú pháp

Delphi

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

Tham số

PathBiểu thức path (ngữ pháp xem tại GetObjectByPath)

Giá trị trả về

-1Path không phân giải được
0The node is a scalar.
NĐộ dài mảng, hoặc số mục của một dictionary hay stream dictionary

Ví dụ

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

Xem thêm

GetObjectByPath, GetObjectCount