SetOutlineOpenFile

קווי מתאר

תיאור

מגדירה את פריט ה-outline (סימנייה) כך שיפתח קובץ בלחיצה עליו

תחביר

Delphi

Function TPDFlib.SetOutlineOpenFile(OutlineID: Integer; Const FileName: WideString): Integer;

ActiveX

Function PDFlib::SetOutlineOpenFile(OutlineID As Long, FileName As String) As Long

DLL

int DLSetOutlineOpenFile(int InstanceID, int OutlineID, const wchar_t * FileName);

פרמטרים

OutlineIDהמזהה של קו המתאר כפי שהוחזר מהפונקציה NewOutline. אפשר גם להשתמש בפונקציה GetOutlineID כדי לקבל מזהה תקין של קו מתאר
FileNameThe file to open when the outline is clicked. This should be in a specific format. Back slashes should be converted to forward slashes and the drive, if any, should be specified as just the drive letter between forward slashes without a colon. For example, the file "c:\my documents\hello.pdf" should be specified as "/c/my documents/hello.pdf". Relative path names are valid, including paths that include the ".." operator to move up a directory.

ערכי החזרה

0ה-OutlineID אינו תקין
1יעד קו המתאר הוגדר בהצלחה