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




Gets the rotate gripper control point location of the selected object in object coordinates.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property RotateGripperControlPointLocation As AnnPoint
Visual Basic (Usage)Copy Code
Dim instance As AnnEditDesigner
Dim value As AnnPoint
 
value = instance.RotateGripperControlPointLocation
C# 
public virtual AnnPoint RotateGripperControlPointLocation {get;}
Managed Extensions for C++ 
public: __property virtual AnnPoint get_RotateGripperControlPointLocation();
C++/CLI 
public:
virtual property AnnPoint RotateGripperControlPointLocation {
   AnnPoint get();
}

Return Value

The rotate gripper control point location of the selected object in object coordinates.

Example

This example displays the location of the rotate control points in container coordinates.

Visual BasicCopy Code
Public Sub AnnEditDesigner_RotateGripperControlPointLocation(ByVal editDesigner As AnnEditDesigner)
   Dim m As System.Drawing.Drawing2D.Matrix = editDesigner.EditObject.PhysicalTransform
   Dim ptC As AnnPoint = editDesigner.RotateCenterControlPointLocation
   Dim ptG As AnnPoint = editDesigner.RotateGripperControlPointLocation
   ' Transform the points by the AnnObject physical transform
   Dim pts As PointF() = New PointF() {New PointF(ptC.X, ptC.Y), New PointF(ptG.X, ptG.Y)}
   m.TransformPoints(pts)
   m.Dispose()

   Dim s As String = String.Format("RotateCenterControlPoint({0},{1}), RotateGripperControlPoint({2},{3})", pts(0).X, pts(0).Y, pts(1).X, pts(1).Y)
   MessageBox.Show(s)
End Sub
C#Copy Code
public void AnnEditDesigner_RotateGripperControlPointLocation(AnnEditDesigner editDesigner) 

   System.Drawing.Drawing2D.Matrix m = editDesigner.EditObject.PhysicalTransform; 
   AnnPoint ptC = editDesigner.RotateCenterControlPointLocation; 
   AnnPoint ptG = editDesigner.RotateGripperControlPointLocation; 
   // Transform the points by the AnnObject physical transform 
   PointF[] pts =  new PointF[] {new PointF(ptC.X, ptC.Y),  new PointF(ptG.X, ptG.Y)}; 
   m.TransformPoints(pts); 
   m.Dispose(); 
 
   string s = String.Format("RotateCenterControlPoint({0},{1}), RotateGripperControlPoint({2},{3})", 
      pts[0].X, 
      pts[0].Y, 
      pts[1].X, 
      pts[1].Y); 
   MessageBox.Show(s); 
}

Remarks

(Read only) The selected object has two rotate control points:
  • Rotate center control point
  • Rotate gripper control point
This returns the location of the rotate gripper control point in object coordinates. To convert to container coordinates, multiply by the PhysicalTransform.

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