GoToAction
Vue de l’ensemble
‘GoToAction’ est une classe dans Aspose.PDF FOSS pour .NET. hérite de: PdfAction.
Cette classe fournit 13 méthodes pour travailler avec les objets GoToAction dans des programmes .NET. Les méthodologies disponibles comprennent: ‘CreateGoTo’, ‘CréateJavaScript’, CreatLaunch', ‘CreatedNamed’, 'createUri', ’GetECMAScriptString', ‚GotoAction‘, 'ToStrin'. Tous les membres publics sont accessibles à n'importe quelle application .Net après avoir installé l'Aspose.PDF FOSS pour le package .net. Propriétés: Destination, destinationsPageIndex,FitTypeetNext`.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
Destination | Annotations.IAppointment? | Read/Write | The destination this action points to. |
DestinationPageIndex | int | Read | The destination page number (0-based), or -1 if not resolved. |
FitType | string? | Read | The fit type of the destination (e.g., “Fit”, “FitH”, “XYZ”). |
Type | ActionType | Read | The action type. |
Next | Annotations.ActionCollection | Read | The /Next chain — actions that fire after this one. |
méthodes
| Signature | Description |
|---|---|
GoToAction(destination: Annotations.ExplicitDestination) | Create a GoTo action targeting the given explicit destination. |
GoToAction(page: Page) | Create a GoTo action targeting the first view of the given page. |
GoToAction(page: int) | Create a GoTo action targeting the page at the given 1-based page number. |
GoToAction() | Create an empty GoTo action. |
GoToAction(doc: Document, name: string) | Named-destination GoTo action (/D entry is a /name). |
GoToAction(page: Page, type: Annotations.ExplicitDestinationType, values: double[]) | Direct GoTo action with an explicit destination type and value array. |
GetECMAScriptString() | For JavaScript actions, returns the embedded script; otherwise an empty string. |
CreateGoTo(pageIndex: int, fitType: string) | Create a GoTo action targeting a page index with the specified fit type. |
CreateUri(uri: string) | Create a URI action that opens the specified URL. |
CreateJavaScript(script: string) | Create a JavaScript action that executes the specified script. |
CreateNamed(name: string) | Create a Named action (e.g., NextPage, PrevPage, FirstPage, LastPage). |
CreateLaunch(filePath: string) | Create a Launch action that opens the specified file. |
ToString() | Human-readable representation of this appointment target. |
Voir aussi
- Aspose.PDF pour .NET — API d’entreprise