LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Position Property
See Also 
Leadtools.Windows.Controls Namespace > ImagePanViewer Class : Position Property



Gets or sets the current pan rectangle position. Supported in Silverlight, Windows Phone 7

Syntax

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;}
C++/CLI 
public:
property Point Position {
   Point get();
   void set (    Point value);
}

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.

Example

For XAML example, refer to ImagePanViewer.

For C#/VB examples, refer to ImagePanViewer.

Remarks

Use this property to inspect the current pan position. You can also use it to programatically change the current pan position.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also