---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/LaunchAction
---

# LaunchAction

## Overview

`LaunchAction` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `PdfAction`.

This class provides 9 methods for working with LaunchAction objects in .NET programs.
Available methods include: `CreateGoTo`, `CreateJavaScript`, `CreateLaunch`, `CreateNamed`, `CreateUri`, `GetECMAScriptString`, `LaunchAction`, `ToString`.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: `File`, `NewWindow`, `Next`, `Type`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `File` | `string` | Read/Write | Gets or sets the file. |
| `NewWindow` | `ExtendedBoolean` | Read/Write | When the action should open the file in a new viewer window. |
| `Type` | `ActionType` | Read | The action type. |
| `Next` | `Annotations.ActionCollection` | Read | The /Next chain — actions that fire after this one. |

## Methods

| Signature | Description |
|-----------|-------------|
| `LaunchAction(file: string)` | Calls LaunchAction on this LaunchAction instance. |
| `LaunchAction(document: Document, file: string)` | Document-bound launch action; document is stored for future binding. |
| `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. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)