LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Pan Event
See Also 
Leadtools.WinForms Namespace > RasterImagePanViewer Class : Pan Event



Occurs when the user performs a panning process for the RasterImagePanViewer displayed image.

Syntax

Visual Basic (Declaration) 
Public Event Pan As EventHandler(Of RasterImagePanViewerEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As RasterImagePanViewer
Dim handler As EventHandler(Of RasterImagePanViewerEventArgs)
 
AddHandler instance.Pan, handler

Event Data

The event handler receives an argument of type RasterImagePanViewerEventArgs containing data related to this event. The following RasterImagePanViewerEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Specifies whether or not to cancel the current panning process.
Rectangle The Pan Rectangle.
Status The Pan process current status.

Example

Refer to Viewer example.

Remarks

This event provides the current status of the pan operation: Begin, Panning, or End, as well the current panning rectangle.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also