ImageGear21.Windows.Controls Assembly > ImageGear.Windows.Controls Namespace > PageView Class : FileOpened Event |
'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
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.
Property | Description |
---|---|
ARTPage | Gets ImGearAnnotationPage loaded into the page view control. Set to null if no annotations were loaded. |
Document | Gets ImGearDocument loaded for the file if requested, otherwise null. |
File | Gets FileInfo of file dropped on PageView control. |
Page | Gets ImGearPage loaded into the page view control. Set to null if no page was loaded. |
PageNumber | Gets Page number of the image or annotation loaded from the file. |
Depends upon DragDropOpen being set to true.
Properties of the FileOpenedEventArgs object contain the results of the opening.