property JavaScriptAction[Index: Integer]: TPdfJavaScriptAction; // read only
문서 수준 JavaScript action 하나를 반환하는 인덱스 읽기 전용 속성입니다 (name + Type + Source string)
Active가 True여야 합니다. index가 유효 범위를 벗어나면 결과는 정의되지 않습니다. 0 .. JavaScriptActionCount - 1 범위의 값을 넘기세요(또는 비 카운트 변형에서는 array의 Length를 사용하세요)
반환된 record는 호출 시점의 value를 스냅샷으로 담고 있으며, 이후 문서 편집은 이전에 반환된 record를 수정하지 않습니다
| Index | Zero-based index in the range 0 .. JavaScriptActionCount - 1. |
var
I: Integer;
begin
if not Pdf1.Active then Exit;
for I := 0 to Pdf1.JavaScriptActionCount - 1 do
begin
// inspect Pdf1.JavaScriptAction[I]
Memo1.Lines.Add(IntToStr(I));
end;
end;