'Declaration
Public Function GetActionPageDestination( _ ByVal ActionID As Integer, _ ByRef DestinationType As PdfDestinationType, _ ByRef Page As Integer, _ ByRef Left As Single, _ ByRef Bottom As Single, _ ByRef Right As Single, _ ByRef Top As Single, _ ByRef Zoom As Single _ ) As GdPictureStatus
public GdPictureStatus GetActionPageDestination( int ActionID, ref PdfDestinationType DestinationType, ref int Page, ref float Left, ref float Bottom, ref float Right, ref float Top, ref float Zoom )
public function GetActionPageDestination( ActionID: Integer; var DestinationType: PdfDestinationType; var Page: Integer; var Left: Single; var Bottom: Single; var Right: Single; var Top: Single; var Zoom: Single ): GdPictureStatus;
public function GetActionPageDestination( ActionID : int, DestinationType : PdfDestinationType, Page : int, Left : float, Bottom : float, Right : float, Top : float, Zoom : float ) : GdPictureStatus;
public: GdPictureStatus GetActionPageDestination( int ActionID, ref PdfDestinationType DestinationType, ref int Page, ref float Left, ref float Bottom, ref float Right, ref float Top, ref float Zoom )
public: GdPictureStatus GetActionPageDestination( int ActionID, PdfDestinationType% DestinationType, int% Page, float% Left, float% Bottom, float% Right, float% Top, float% Zoom )
Parameters
- ActionID
- A unique action identifier specifying a required action object. You can obtain this identifier using these methods: GdPicturePDF.GetViewerOpenActionID, GdPicturePDF.GetBookmarkActionID, GdPicturePDF.GetFormFieldActionID, GdPicturePDF.GetAnnotationActionID, GdPicturePDF.NewActionGoTo or GdPicturePDF.NewActionNamed.
Please ensure that the type of the action object specified by this identifier is one of the action types PdfActionType.ActionTypeGoTo, PdfActionType.ActionTypeNamed or PdfActionType.ActionTypeExplicitDestination, otherwise the method will fail. You can check the type of the required action object using the GdPicturePDF.GetActionType method as it is shown in the example below.
- DestinationType
- Output parameter. A member of the PdfDestinationType enumeration. Sets up a particular view of a destination page specified by the used action mentioned above.
- Page
- Output parameter. The destination page number.
- Left
- Output parameter. The horizontal (left) coordinate of the document window's position according to the used DestinationType mentioned above. The value of this coordinate is expressed in the currently set units according to the currently used coordinate space, see the Remarks section below.
- Bottom
- Output parameter. The vertical (bottom) coordinate of the document window's position according to the used DestinationType mentioned above. The value of this coordinate is expressed in the currently set units according to the currently used coordinate space, see the Remarks section below.
- Right
- Output parameter. The horizontal (right) coordinate of the document window's position according to the used DestinationType mentioned above. The value of this coordinate is expressed in the currently set units according to the currently used coordinate space, see the Remarks section below.
- Top
- Output parameter. The vertical (top) coordinate of the document window's position according to the used DestinationType mentioned above. The value of this coordinate is expressed in the currently set units according to the currently used coordinate space, see the Remarks section below.
- Zoom
- Output parameter. The zoom factor to use when displaying the destination page according to the DestinationType configuration. The return value of 1 means 100% zoom, 2 means 200%, 0,5 for 50%, etc. The value of 0 means that the current zoom value should remain unchanged.
Return Value
If the action object specified by the action identifier is not one of the correct action types mentioned above, the reason for the method's failure is GdPictureStatus.InvalidParameter.