ImageGear .NET
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
CancelGets or sets a value indicating whether to cancel opening of the file.  
CreateNewPageDisplayForImageGets or sets a value indicating whether to create a new Display object for images.  
FileGets FileInfo of file dropped on PageView control. Also contains method to open the file.  
OpenAnnotationsGets or sets a value indicating whether annotations will be opened.  
OpenDocumentGets or sets a value indicating whether to open an ImageGear.Core.ImGearDocument for images.  
OpenImagesGets or sets a value indicating whether images will be opened.  
PageNumberGets 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

Reference

PageView Class
PageView Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback