ImageGear for .NET
FileOpening Event
See Also  Send Feedback
ImageGear21.Windows.Controls Assembly > ImageGear.Windows.Controls Namespace > PageView Class : FileOpening Event




Glossary Item Box

Event triggered before a file is opened by the PageView control.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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

©2013. Accusoft Corporation. All Rights Reserved.