Creates the new PdfGoToAction with specified properties and adds it to the collection of document actions.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public PdfGoToAction CreateGoToPageAction(
	int pageIndex,
	double topOffset
)
VB
Public Function CreateGoToPageAction ( 
	pageIndex As Integer,
	topOffset As Double
) As PdfGoToAction

Parameters

pageIndex
Type: System.Int32
The index of the page to be displayed as the result of the action.
topOffset
Type: System.Double
The vertical coordinate of the page that should be positioned at the top edge of the window when the page is displayed. The offset is relative to the top edge of the page. I.e. offset 0 means "display page starting from the top edge".

Return Value

Type: PdfGoToAction
The newly created PdfGoToAction.

See Also