Skip to content

# PDFVisualAnnotationResizeEventArgs

Namespace: O2S.Components.PDF4NET.View

Defines the event arguments for and events.

    public class PDFVisualAnnotationResizeEventArgs : PDFVisualAnnotationEventArgs

Inheritance Object → EventArgs → PDFVisualAnnotationEventArgs → PDFVisualAnnotationResizeEventArgs

## Properties

### AllowHorizontalResize

Gets or sets a value indicating whether the resize operation should be allowed on horizontal.

    public bool AllowHorizontalResize { get; set; }

Property Value

Boolean
True if the horizontal resize operation should be allowed. Default is true.

Remarks

If both PDFVisualAnnotationResizeEventArgs.AllowHorizontalResize and PDFVisualAnnotationResizeEventArgs.AllowVerticalResize properties are false then the annotation cannot be resized. This property is not used by event.

### AllowVerticalResize

Gets or sets a value indicating whether the resize operation should be allowed on vertical.

    public bool AllowVerticalResize { get; set; }

Property Value

Boolean
True if the vertical resize operation should be allowed. Default is true.

Remarks

If both PDFVisualAnnotationResizeEventArgs.AllowHorizontalResize and PDFVisualAnnotationResizeEventArgs.AllowVerticalResize properties are false then the annotation cannot be resized. This property is not used by event.

### NewSize

Gets the annotation's new size.

    public PDFDisplayRectangle NewSize { get; }

Property Value

PDFDisplayRectangle
The size of the anotation on the page after it has been resized.

### OldSize

Gets the annotation's old size.

    public PDFDisplayRectangle OldSize { get; }

Property Value

PDFDisplayRectangle
The size of the anotation on the page before it has been resized.

### VisualAnnotation

Gets the annotation.

    public PDFVisualAnnotation VisualAnnotation { get; }

Property Value

PDFVisualAnnotation
The annotation that generated the event.