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(); |
Visual Basic | Copy Code |
---|---|
Public Sub ImagePanViewer_CenterPan(ByVal panViewer As ImagePanViewer) panViewer.CenterPan() End Sub |
C# | Copy Code |
---|---|
public void ImagePanViewer_CenterPan(ImagePanViewer panViewer) { panViewer.CenterPan(); } |
SilverlightCSharp | Copy Code |
---|---|
public void ImagePanViewer_CenterPan(ImagePanViewer panViewer) { panViewer.CenterPan(); } |
SilverlightVB | Copy Code |
---|---|
Public Sub ImagePanViewer_CenterPan(ByVal panViewer As ImagePanViewer) panViewer.CenterPan() End Sub |
Calling this method will center the current view inside the pan viewer. The associated viewer in Source will center its view as well.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family