Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
GripperDistance Property
See Also  Example
Leadtools.Windows.Annotations Namespace > AnnObjectBase Class : GripperDistance Property





The distance in pixels that the AnnObjectBase.RotateGripper control point is originally placed from the bounds of the AnnObjectBase. This is a dependency property.

Syntax

Visual Basic (Declaration) 
Public Property GripperDistance As Double
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
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);
}
XAML Attributes Usage 

<object GripperDistance=double .../>

Dependencies Property Information 

Identifier field

GripperDistanceProperty

Metadata properties set to true

AffectsRender

XAML Attributes Usage 

<object GripperDistance=double .../>

Dependencies Property Information 

Identifier field

GripperDistanceProperty

Metadata properties set to true

AffectsRender

Return Value

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

Example

This example does the following:

  1. displays the AnnObjectBase.RotateCenter and AnnObjectBase.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 AnnObjectBase)
   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(AnnObjectBase 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(); 
}

Remarks

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

Requirements

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

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.