Navigates in pages view to the specified destination point on pages.
Syntax
HRESULT GoToDestination ([in] PXC_Destination* stDest, |
[in, defaultvalue (0)] ULONG nGoDestFlags); |
Parameters
- stDest
- [in] Pointer to PXC_Destination structure that specifies new view point on the pages view.
- nGoDestFlags
- [in, defaultvalue(0)] An additional flags, see PXV_GotoDestinationFlags.
Return Value
Returns S_OK if operation was successful or error code in other cases.
Sample
02 | private void zoomToContentToolStripMenuItem_Click( object sender, EventArgs e) |
05 | PDFXEdit.PXC_Rect rcBBox = pdfCtl.Doc.CoreDoc.Pages[nPageNumber].get_Box(PDFXEdit.PXC_BoxType.PBox_BBox); |
06 | PDFXEdit.PXC_Destination dest = new PDFXEdit.PXC_Destination(); |
07 | dest.nType = PDFXEdit.PXC_DestType.Dest_FitR; |
08 | dest.dValues = new Double[4]; |
09 | dest.dValues[0] = rcBBox.left; |
10 | dest.dValues[1] = rcBBox.bottom; |
11 | dest.dValues[2] = rcBBox.right; |
12 | dest.dValues[3] = rcBBox.top; |
13 | dest.nPageNum = nPageNumber; |
14 | pdfCtl.GoToDestination( ref dest); |
See Also
IPXV_Control