Skip to content

# PDFVisualAnnotationAddEventArgs

Namespace: O2S.Components.PDF4NET.View

Defines the event arguments for and events.

    public class PDFVisualAnnotationAddEventArgs : PDFVisualAnnotationEventArgs

Inheritance Object → EventArgs → PDFVisualAnnotationEventArgs → PDFVisualAnnotationAddEventArgs

## Constructors

### PDFVisualAnnotationAddEventArgs(PDFVisualAnnotation)

Initializes a new PDFVisualAnnotationAddEventArgs object.

    public PDFVisualAnnotationAddEventArgs(PDFVisualAnnotation annotation)

Parameters

`annotation` PDFVisualAnnotation
The annotation that generated the event.

## Properties

### AllowAdd

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

    public bool AllowAdd { get; set; }

Property Value

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

Remarks

This property is not used by the event.

### VisualAnnotation

Gets the annotation.

    public PDFVisualAnnotation VisualAnnotation { get; }

Property Value

PDFVisualAnnotation
The annotation that generated the event.