'Declaration
Public Function GetActionRemotePageDestination( _ ByVal ActionID As Integer, _ ByRef DestinationType As PdfDestinationType, _ ByRef FilePath As String, _ ByRef NewWindow As Boolean, _ 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 GetActionRemotePageDestination( int ActionID, ref PdfDestinationType DestinationType, ref string FilePath, ref bool NewWindow, ref int Page, ref float Left, ref float Bottom, ref float Right, ref float Top, ref float Zoom )
public function GetActionRemotePageDestination( ActionID: Integer; var DestinationType: PdfDestinationType; var FilePath: String; var NewWindow: Boolean; var Page: Integer; var Left: Single; var Bottom: Single; var Right: Single; var Top: Single; var Zoom: Single ): GdPictureStatus;
public function GetActionRemotePageDestination( ActionID : int, DestinationType : PdfDestinationType, FilePath : String, NewWindow : boolean, Page : int, Left : float, Bottom : float, Right : float, Top : float, Zoom : float ) : GdPictureStatus;
public: GdPictureStatus GetActionRemotePageDestination( int ActionID, ref PdfDestinationType DestinationType, ref string* FilePath, ref bool NewWindow, ref int Page, ref float Left, ref float Bottom, ref float Right, ref float Top, ref float Zoom )
public: GdPictureStatus GetActionRemotePageDestination( int ActionID, PdfDestinationType% DestinationType, String^% FilePath, bool% NewWindow, 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: GetViewerOpenActionID, GetBookmarkActionID, GetFormFieldActionID, GetAnnotationActionID or NewActionGoToR(PdfDestinationType,String,Boolean,Int32,Single,Single,Single,Single,Single).
Please ensure that the type of the action object specified by this identifier is exactly the PdfActionType.ActionTypeGoToR, otherwise the method will fail. You can check the type of the required action object using the 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 to jump specified by the this action.
- FilePath
- Output parameter. The file path in which the destination is located.
- NewWindow
- Output parameter. Specifies whether to open the destination document in a new window. If the returned value is false, the destination document replaces the current document in the same window.
- 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 of the type PdfActionType.ActionTypeGoToR, the reason for the method's failure is GdPictureStatus.InvalidParameter.