ImageGear23.Windows.Controls Assembly > ImageGear.Windows.Controls Namespace > PageView Class : FileOpening Event |
'Declaration Public Event FileOpening As EventHandler(Of FileOpeningEventArgs)
'Usage Dim instance As PageView Dim handler As EventHandler(Of FileOpeningEventArgs) AddHandler instance.FileOpening, handler
public event EventHandler<FileOpeningEventArgs> FileOpening
public: __event EventHandler<FileOpeningEventArgs*>* FileOpening
public: event EventHandler<FileOpeningEventArgs^>^ FileOpening
The event handler receives an argument of type FileOpeningEventArgs containing data related to this event. The following FileOpeningEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value indicating whether to cancel opening of the file. |
CreateNewPageDisplayForImage | Gets or sets a value indicating whether to create a new Display object for images. |
File | Gets FileInfo of file dropped on PageView control. Also contains method to open the file. |
OpenAnnotations | Gets or sets a value indicating whether annotations will be opened. |
OpenDocument | Gets or sets a value indicating whether to open an ImageGear.Core.ImGearDocument for images. |
OpenImages | Gets or sets a value indicating whether images will be opened. |
PageNumber | Gets or sets page number in the file to be opened. |
Depends upon DragDropOpen being set to true.
Properties of the FileOpeningEventArgs object can be used to control loading behavior.