LEADTOOLS Annotations (Leadtools.Annotations assembly)

RotateGripperControlPointLocation Property

Show in webframe
Example 





Gets the rotate gripper control point location of the selected object in object coordinates.
Syntax
public virtual AnnPoint RotateGripperControlPointLocation {get;}
'Declaration
 
Public Overridable ReadOnly Property RotateGripperControlPointLocation As AnnPoint
'Usage
 
Dim instance As AnnEditDesigner
Dim value As AnnPoint
 
value = instance.RotateGripperControlPointLocation

            

            
public:
virtual property AnnPoint RotateGripperControlPointLocation {
   AnnPoint get();
}

Property Value

The rotate gripper control point location of the selected object in object coordinates.
Remarks
The selected object has two rotate control points: 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.

Example
Copy Code  
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms

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
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;

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

Target Platforms

See Also

Reference

AnnEditDesigner Class
AnnEditDesigner Members
RotateCenterControlPointLocation Property

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.