Class GoTo
This class represents a GoTo action. ActionType
Inheritance
System.Object
GoTo
Implements
Namespace: PSPDFKit.Pdf.Actions
Assembly: PSPDFKit.dll
Syntax
public sealed class GoTo : IAction
Constructors
GoTo(Int32)
Sets the index of the page to go to.
Declaration
public GoTo(int pageIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | pageIndex | The index of the page to go to. |
Properties
ActionType
The type of the action. ActionType
Declaration
public ActionType ActionType { get; }
Property Value
Type | Description |
---|---|
ActionType |
PageIndex
The index of the page to go to.
Declaration
public int PageIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
FromJson(JsonObject)
Constructs an IAction from Instant JSON. See https://pspdfkit.com/guides/server/current/document/json-format/
Declaration
public static IAction FromJson(JsonObject json)
Parameters
Type | Name | Description |
---|---|---|
Windows.Data.Json.JsonObject | json | The Instant JSON representing the IAction. |
Returns
Type | Description |
---|---|
IAction | The IAction represented by the Instant JSON. |
ToJson()
Converts the action to its JSON representation. See https://pspdfkit.com/guides/server/current/document/json-format/#toc_action-types
Declaration
public JsonObject ToJson()
Returns
Type | Description |
---|---|
Windows.Data.Json.JsonObject | A JsonObject containing the action. |