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




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

Syntax

Visual Basic (Declaration) 
Public Property GripperDistance As Integer
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
Dim value As Integer
 
instance.GripperDistance = value
 
value = instance.GripperDistance
C# 
public int GripperDistance {get; set;}
Managed Extensions for C++ 
public: __property int get_GripperDistance();
public: __property void set_GripperDistance( 
   int value
);
C++/CLI 
public:
property int GripperDistance {
   int get();
   void set (int value);
}

Return 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: <list type="number"> <item><description>displays the RotateCenter and RotateGripper location (in object coordinates)</description></item> <item><description>changes the gripper distance to 60 pixels</description></item> <item><description>resets the rotate points to a new location (using the new gripper distance)</description></item> </list>

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(); 
}

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 New Annotation Features of Version 14.5.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features