LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
GripperDistance Property
See Also 
Leadtools.Windows.Annotations Namespace > AnnObject Class : GripperDistance Property



The distance in pixels that the RotateGripper control point is originally placed from the bounds of the AnnObject. This is a dependency property.Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Property GripperDistance As Double
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Double
 
instance.GripperDistance = value
 
value = instance.GripperDistance
C# 
public double GripperDistance {get; set;}
C++/CLI 
public:
property double GripperDistance {
   double get();
   void set (    double value);
}

Property Value

The distance in pixels that the RotateGripper control point is originally placed from the bounds of the AnnObject.

Example

This example does the following:

  1. displays the RotateCenter and RotateGripper location (in object coordinates)
  2. changes the gripper distance to 60 pixels
  3. resets the rotate points to a new location (using the new gripper distance)

Visual BasicCopy Code
Public Sub AnnObject_GripperDistance(ByVal obj As AnnObject)
   Dim s As String = String.Format("RotateCenter: ({0},{1})  RotateGripper: ({2},{3})", obj.RotateCenter.X, obj.RotateCenter.Y, obj.RotateGripper.X, obj.RotateGripper.Y)
   MessageBox.Show(s)
   obj.GripperDistance = 60
   obj.ResetRotatePoints()
End Sub
C#Copy Code
public void AnnObject_GripperDistance(AnnObject obj)
{
   string s = String.Format("RotateCenter: ({0},{1})  RotateGripper: ({2},{3})",
      obj.RotateCenter.X, obj.RotateCenter.Y,
      obj.RotateGripper.X, obj.RotateGripper.Y);
   MessageBox.Show(s);
   obj.GripperDistance = 60;
   obj.ResetRotatePoints();
}
SilverlightCSharpCopy Code
public void AnnObject_GripperDistance(AnnObject obj)
{
   string s = String.Format("RotateCenter: ({0},{1})  RotateGripper: ({2},{3})",
      obj.RotateCenter.X, obj.RotateCenter.Y,
      obj.RotateGripper.X, obj.RotateGripper.Y);
   MessageBox.Show(s);
   obj.GripperDistance = 60;
   obj.ResetRotatePoints();
}
SilverlightVBCopy Code
Public Sub AnnObject_GripperDistance(ByVal obj As AnnObject)
   Dim s As String = String.Format("RotateCenter: ({0},{1})  RotateGripper: ({2},{3})", obj.RotateCenter.X, obj.RotateCenter.Y, obj.RotateGripper.X, obj.RotateGripper.Y)
   MessageBox.Show(s)
   obj.GripperDistance = 60
   obj.ResetRotatePoints()
End Sub

Remarks

When an AnnObject is first selected, two rotate handles appear: the RotateCenter and the RotateGripper. This property is the pixel distance that the RotateGripper is initially placed from the bounds of the AnnObject. For more information, refer to WPF Annotation Rotation Options.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

GripperDistance requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.