ImageGear .NET v24.14 - Updated
FileOpening Event




ImageGear24.Windows.Controls Assembly > ImageGear.Windows.Controls Namespace > PageView Class : FileOpening Event
Event triggered before a file is opened by the PageView control.
Syntax
'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
Event Data

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.

PropertyDescription
Gets or sets a value indicating whether to cancel opening of the file.  
Gets or sets a value indicating whether to create a new Display object for images.  
Gets FileInfo of file dropped on PageView control. Also contains method to open the file.  
Gets or sets a value indicating whether annotations will be opened.  
Gets or sets a value indicating whether to open an ImageGear.Core.ImGearDocument for images.  
Gets or sets a value indicating whether images will be opened.  
Gets or sets page number in the file to be opened.  
Remarks

Depends upon DragDropOpen being set to true.

Properties of the FileOpeningEventArgs object can be used to control loading behavior.

See Also