Skip to content

# PDFResetFormAction

Namespace: O2S.Components.PDF4NET.Actions

Defines a reset form action.

    public class PDFResetFormAction : PDFAction

Inheritance Object → PDFAction → PDFResetFormAction

Remarks

A reset form action resets selected interactive form fields to their default values.

## Constructors

### PDFResetFormAction()

Initializes a new PDFResetFormAction object.

    public PDFResetFormAction()

## Properties

### Actions

Gets or sets the sequence of actions to be performed after this action.

    public PDFActionCollection Actions { get; set; }

Property Value

PDFActionCollection
The sequence of actions to be performed after this action.

### CosAction

Gets the cos action object.

    public PDFCosDictionary CosAction { get; }

Property Value

PDFCosDictionary
The cos action dictionary.

Remarks

Direct changes to cos action dictionary can lead to unexpected results if they do not follow the PDF specification.

### Fields

Gets or sets a list identifying which fields to reset or which to exclude from resetting.

    public List<string> Fields { get; set; }

Property Value

List<String>
A list of strings identifying which fields to reset or which to exclude from resetting, depending on the value of PDFResetFormAction.ResetFields property.

Remarks

If the list is null or empty then all the form fields are reset no matter the value of PDFResetFormAction.ResetFields property.

### ResetFields

Gets or sets a value indicating whether the action resets the fields in the list of excludes them.

    public bool ResetFields { get; set; }

Property Value

Boolean
True if the fields in the list are reset, false if they are excluded from reset.

### Type

Gets the type of this action.

    public PDFActionType Type { get; }

Property Value

PDFActionType
A PDFActionType enum member specifying the type of this action.