Skip to content

# PDFVisualFieldAddEventArgs

Namespace: O2S.Components.PDF4NET.View

Defines the event arguments for and events.

    public class PDFVisualFieldAddEventArgs : PDFVisualFieldEventArgs

Inheritance Object → EventArgs → PDFVisualFieldEventArgs → PDFVisualFieldAddEventArgs

## Constructors

### PDFVisualFieldAddEventArgs(PDFVisualField)

Initializes a new PDFVisualFieldAddEventArgs object.

    public PDFVisualFieldAddEventArgs(PDFVisualField annotation)

Parameters

`annotation` PDFVisualField
The field that generated the event.

## Properties

### AllowAdd

Gets or sets a value indicating whether the field should be added or not.

    public bool AllowAdd { get; set; }

Property Value

Boolean
True if the field should be added. Default is true.

Remarks

This property is not used by the event.

### VisualField

Gets the field.

    public PDFVisualField VisualField { get; }

Property Value

PDFVisualField
The field that generated the event.