SetOutlineDestinationFull
קווי מתאר
תיאור
מגדירה את היעד של פריט outline (סימנייה) למיקום ואחוז זום ספציפיים
תחביר
Delphi
Function TPDFlib.SetOutlineDestinationFull(OutlineID, DestPage, Zoom, DestType: Integer; Left, Top, Right, Bottom: Double): Integer;
ActiveX
Function PDFlib::SetOutlineDestinationFull(OutlineID As Long, DestPage As Long, Zoom As Long, DestType As Long, Left As Double, Top As Double, Right As Double, Bottom As Double) As Long
DLL
int DLSetOutlineDestinationFull(int InstanceID, int OutlineID, int DestPage, int Zoom, int DestType, double Left, double Top, double Right, double Bottom);
פרמטרים
| OutlineID | המזהה של קו המתאר כפי שהוחזר מהפונקציה NewOutline. אפשר גם להשתמש בפונקציה GetOutlineID כדי לקבל מזהה תקין של קו מתאר |
|---|---|
| DestPage | מספר העמוד אליו מקושר פריט ה-outline הזה אחוז הזום לשימוש בעת פתיחת יעד ה-outline, ערכים תקינים מ-0 עד 6400. בשימוש רק עבור DestType = 1; יש להגדיר ל-0 עבור שאר ה-DestTypes |
| Zoom | |
| DestType | 1 = "XYZ" - the target page is positioned at the point specified by the Left and Top parameters. The Zoom parameter specifies the zoom percentage. 2 = "Fit" - the entire page is zoomed to fit the window. None of the other parameters are used and should be set to zero. 3 = "FitH" - the page is zoomed so that the entire width of the page is visible. The height of the page may be greater or less than the height of the window. The page is positioned at the vertical position specified by the Top parameter. 4 = "FitV" - the page is zoomed so that the entire height of the page can be seen. The width of the page may be greater or less than the width of the window. The page is positioned at the horizontal position specified by the Left parameter. 5 = "FitR" - the page is zoomed so that a certain rectangle on the page is visible. The Left, Top, Right and Bottom parameters define the rectangular area on the page. 6 = "FitB" - the page is zoomed so that it's bounding box is visible. 7 = "FitBH" - the page is positioned vertically at the position specified by the Top parameter. The page is zoomed so that the entire width of the page's bounding box is visible. 8 = "FitBV" - the page is positioned at the horizontal position specified by the Left parameter. The page is zoomed just enough to fit the entire height of the bounding box into the window. The horizontal position used by DestType = 1, 4, 5 and 8 |
| Left | |
| Top | המיקום האנכי בשימוש עבור DestType = 1, 3, 5 ו-7 |
| Right | המיקום האופקי של הקצה הימני של המלבן; בשימוש עבור DestType = 5 |
| Bottom | המיקום האופקי של תחתית המלבן; בשימוש עבור DestType = 5 |
ערכי החזרה
| 0 | את יעד ה-outline לא ניתן היה להגדיר. זה בדרך כלל מציין שהפרמטרים Zoom או DestType מחוץ לטווח או שה-OutlineID אינו תקין |
|---|---|
| 1 | יעד קו המתאר הוגדר בהצלחה |