# LaunchAction Class

> A launch action launches an application or opens or prints a document.

- Product: Adobe PDF Library 18
- Language: .NET
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/LaunchAction
- Version index: https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/llms.txt

```csharp
class LaunchAction : Action
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** [`Action`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Action.md)

## Description

A launch action launches an application or opens or prints a document.

**Referenced by:** [`LaunchAction`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/LaunchAction.md)

**Uses types:** [`Action`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/Action.md), [`FileSpecification`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/FileSpecification.md), [`LaunchAction`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/LaunchAction.md), [`PDFDict`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/PDFDict.md)

## Constructors

### LaunchAction

```csharp
Datalogics.PDFL.LaunchAction.LaunchAction(FileSpecification fileSpec)
```

*constructor*

**Parameters**

- `fileSpec` ([`FileSpecification`](https://docs.datalogics.com/apdfl18/DotNet/APDFL18.0.5PlusP2e/class/FileSpecification.md)): A FileSpecification representing the application to be launched or the document to be opened or printed by this action.

General constructor.

The action's target will be the path referenced in the FileSpecification parameter. If the path is absolute, the target path will also be absolute. If the path is relative, the target path will also be relative.

Generally, the FileSpecification should be associated with the same Document that contains the LaunchAction. (Both FileSpecification and LaunchAction objects are associated with a Document at creation time, and the association cannot be changed.) The LaunchAction will be associated with the same Document that the FileSpecification parameter is associated with.

If the action's FileSpecification is changed during program execution such that the FileSpecification is associated with a different Document than the LaunchAction, saving the Document that contains the action will create a copy of the FileSpecification in the Document that contains the action.

## Properties

### FileSpecification

```csharp
FileSpecification Datalogics.PDFL.LaunchAction.FileSpecification { get; set; }
```

### NewWindow

```csharp
bool Datalogics.PDFL.LaunchAction.NewWindow { get; set; }
```

### PDFDict

```csharp
PDFDict Datalogics.PDFL.Action.PDFDict { get; }
```

### Subtype

```csharp
string Datalogics.PDFL.Action.Subtype { get; }
```

## Methods

### Dispose

```csharp
void Datalogics.PDFL.Action.Dispose()
```

**Returns:** `void`

### Equals

```csharp
override bool Datalogics.PDFL.Action.Equals(object obj)
```

**Parameters**

- `obj` (`object`)

**Returns:** `override bool`

### ToString

```csharp
override string Datalogics.PDFL.Action.ToString()
```

**Returns:** `override string`

A string describing this Action.

Returns a string representation of this Action.

The string includes the action's subtype.
