Leadtools.Windows.Controls Namespace > ImagePanViewer Class : Pan Event |
public event EventHandler<ImagePanViewerEventArgs> Pan
'Declaration Public Event Pan As EventHandler(Of ImagePanViewerEventArgs)
'Usage Dim instance As ImagePanViewer Dim handler As EventHandler(Of ImagePanViewerEventArgs) AddHandler instance.Pan, handler
public event EventHandler<ImagePanViewerEventArgs> Pan
add_Pan(function(sender, e)) remove_Pan(function(sender, e))
public: event EventHandler<ImagePanViewerEventArgs^>^ Pan
The event handler receives an argument of type ImagePanViewerEventArgs containing data related to this event. The following ImagePanViewerEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets a value that indicates whether to cancel the current pan process. |
Handled (Inherited from System.Windows.RoutedEventArgs) | |
OriginalSource (Inherited from System.Windows.RoutedEventArgs) | |
Rectangle | Gets the current pan rectangle. |
RoutedEvent (Inherited from System.Windows.RoutedEventArgs) | |
Source (Inherited from System.Windows.RoutedEventArgs) | |
Status | Gets the current status of the pan process. |
This event provides the current status of the pan operation: Begin, Panning, or End, as well as the current panning rectangle.
For C#/VB examples, refer to ImagePanViewer.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2