ImageGear for .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
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.
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

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback