Visual Basic (Declaration) | |
---|---|
Public Property Position As Point |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As ImagePanViewer Dim value As Point instance.Position = value value = instance.Position |
C# | |
---|---|
public Point Position {get; set;} |
Property Value
A System.Windows.Point that indicates the current top-left position of the pan rectangle. This value is updated whenever the user moves the pan rectangle with the mouse. Default value is 0,0.For XAML example, refer to ImagePanViewer.
For C#/VB examples, refer to ImagePanViewer.
Use this property to inspect the current pan position. You can also use it to programatically change the current pan position.
Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family