Skip to content

PDFVisualPageReorderEventArgs

Namespace: O2S.Components.PDF4NET.View

Defines the event arguments for PDFThumbnailsView.BeforePageReorder and PDFThumbnailsView.AfterPageReorder events.

public class PDFVisualPageReorderEventArgs : System.EventArgs

Inheritance ObjectEventArgsPDFVisualPageReorderEventArgs

Properties

Cancel

Gets or sets a value indicating whether the reorder operation should be canceled or not.

public bool Cancel { get; set; }

Property Value

Boolean
True if the reorder operation should be canceled. Default is false.

Remarks

This property is used in only PDFThumbnailsView.BeforePageReorder event handler to cancel the reorder operation. If set to true, the pages will not be reordered and the PDFThumbnailsView.AfterPageReorder event will not be raised.


InsertPosition

Gets the position in the document where the pages are inserted.

public int InsertPosition { get; }

Property Value

Int32
Index in the document where the pages are inserted.

Remarks

The first page in the list is inserted in this position, the next page is inserted at insertPosition + 1 and so on.


Pages

Gets the list of pages being reordered.

public Int32[] Pages { get; }

Property Value

Int32[]
The list of pages being reordered.