Skip to content

# PDFVisualAnnotationMoveEventArgs

Namespace: O2S.Components.PDF4NET.View

Defines the event arguments for PDFDocumentView.BeforeAnnotationMove and PDFDocumentView.AfterAnnotationMove events.

    public class PDFVisualAnnotationMoveEventArgs : PDFVisualAnnotationEventArgs

Inheritance Object → EventArgs → PDFVisualAnnotationEventArgs → PDFVisualAnnotationMoveEventArgs

## Properties

### AllowHorizontalMove

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

    public bool AllowHorizontalMove { get; set; }

Property Value

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

Remarks

If both PDFVisualAnnotationMoveEventArgs.AllowHorizontalMove and PDFVisualAnnotationMoveEventArgs.AllowVerticalMove properties are false then the annotation cannot be moved. This property is not used by PDFDocumentView.AfterAnnotationMove event.

### AllowVerticalMove

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

    public bool AllowVerticalMove { get; set; }

Property Value

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

Remarks

If both PDFVisualAnnotationMoveEventArgs.AllowHorizontalMove and PDFVisualAnnotationMoveEventArgs.AllowVerticalMove properties are false then the annotation cannot be moved. This property is not used by PDFDocumentView.AfterAnnotationMove event.

### Location

Gets the location of the mouse during the generating mouse event.

    public Point Location { get; }

Property Value

Point
A that contains the x and y mouse coordinates, in pixels, relative to the upper-left corner of the PDFDocumentView control.

### NewPosition

Gets the annotation's new position.

    public PDFDisplayRectangle NewPosition { get; }

Property Value

PDFDisplayRectangle
The position of the anotation on the page after it has been moved.

### OldPosition

Gets the annotation's old position.

    public PDFDisplayRectangle OldPosition { get; }

Property Value

PDFDisplayRectangle
The position of the anotation on the page before it has been moved.

### PageStandardPoint

Gets the page standard point.

    public PDFPoint PageStandardPoint { get; }

Property Value

PDFPoint
The point of the page where the mouse was pressed (PDFDocumentView.BeforeAnnotationMove) and released (PDFDocumentView.AfterAnnotationMove) in page standard coordinates.

Remarks

The point on the page is given in standard PDF coordinates. The values for (x,y) are PDF points.

### PageVisualPoint

Gets the page visual point.

    public PDFPoint PageVisualPoint { get; }

Property Value

PDFPoint
The point of the page where the mouse was pressed (PDFDocumentView.BeforeAnnotationMove) and released (PDFDocumentView.AfterAnnotationMove) in page visual coordinates.

Remarks

The point on the page is relative to page's top left visible corner. The values for (x,y) are PDF points.

### VisualAnnotation

Gets the annotation.

    public PDFVisualAnnotation VisualAnnotation { get; }

Property Value

PDFVisualAnnotation
The annotation that generated the event.