Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
CenterPan Method
See Also  Example
Leadtools.Windows.Controls Namespace > ImagePanViewer Class : CenterPan Method



Center the Pan rectangle.

Syntax

Visual Basic (Declaration) 
Public Sub CenterPan() 
Visual Basic (Usage)Copy Code
Dim instance As ImagePanViewer
 
instance.CenterPan()
C# 
public void CenterPan()
C++/CLI 
public:
void CenterPan(); 

Example

This example will load an image from an uri

Visual BasicCopy Code
Public Sub ImagePanViewer_CenterPan(ByVal panViewer As ImagePanViewer)
   panViewer.CenterPan()
End Sub
C#Copy Code
public void ImagePanViewer_CenterPan(ImagePanViewer panViewer) 

   panViewer.CenterPan(); 
}

Remarks

This method will center the pan rectangle and update the scroll bars to the image center .

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also