ImageGear .NET v24.14 - Updated
FileOpened Event




ImageGear24.Windows.Controls Assembly > ImageGear.Windows.Controls Namespace > PageView Class : FileOpened Event
Event triggered after a file has been opened by the PageView control.
Syntax
'Declaration
 
Public Event FileOpened As EventHandler(Of FileOpenedEventArgs)
'Usage
 
Dim instance As PageView
Dim handler As EventHandler(Of FileOpenedEventArgs)
 
AddHandler instance.FileOpened, handler
public event EventHandler<FileOpenedEventArgs> FileOpened
public: __event EventHandler<FileOpenedEventArgs*>* FileOpened
public:
event EventHandler<FileOpenedEventArgs^>^ FileOpened
Event Data

The event handler receives an argument of type FileOpenedEventArgs containing data related to this event. The following FileOpenedEventArgs properties provide information specific to this event.

PropertyDescription
Gets ImGearAnnotationPage loaded into the page view control. Set to null if no annotations were loaded.  
Gets ImGearDocument loaded for the file if requested, otherwise null.  
Gets FileInfo of file dropped on PageView control.  
Gets ImGearPage loaded into the page view control. Set to null if no page was loaded.  
Gets Page number of the image or annotation loaded from the file.  
Remarks

Depends upon DragDropOpen being set to true.

Properties of the FileOpenedEventArgs object contain the results of the opening.

See Also