• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class GoToAction

A go-to action (spec §12.6.4.2) that changes the view to a specified destination within the current document.

Inheritance
object
PdfAction
GoToAction
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Pdf.Actions
Assembly: DRIT.Pdf.dll
Syntax
public sealed class GoToAction : PdfAction

Constructors

GoToAction(Destination)

Creates a go-to action with the specified destination.

Declaration
public GoToAction(Destination destination)
Parameters
Type Name Description
Destination destination

The destination to navigate to.

GoToAction(Page, DestinationViewType, params double[])

Creates a go-to action targeting a specific page with the given view type.

Declaration
public GoToAction(Page page, DestinationViewType viewType, params double[] args)
Parameters
Type Name Description
Page page

The target page in the current document.

DestinationViewType viewType

How the page should be displayed.

double[] args

View-type-specific arguments (e.g. zoom for XYZ).

GoToAction(string)

Creates a go-to action using a named destination string.

Declaration
public GoToAction(string namedDestination)
Parameters
Type Name Description
string namedDestination

The name of the destination as defined in the document's name tree.

Properties

Destination

The destination to navigate to. May reference a page directly or use a named destination resolved by the viewer.

Declaration
public Destination Destination { get; set; }
Property Value
Type Description
Destination

Type

The action subtype identifying this action's type.

Declaration
public override ActionType Type { get; }
Property Value
Type Description
ActionType
Overrides
PdfAction.Type
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX