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



Resets the rotate control points of the selected AnnObjectBase to their default location.

Syntax

Visual Basic (Declaration) 
Public Overridable Sub ResetRotatePoints() 
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
 
instance.ResetRotatePoints()
C# 
public virtual void ResetRotatePoints()
C++/CLI 
public:
virtual void ResetRotatePoints(); 

Example

This example determines if the rotate control points can be reset to the default location. For CanResetRotatePoints to be true the following must hold:

  1. An AnnObject must be selected and
  2. UseRotateControlPoints must be true

Visual BasicCopy Code
Private Sub AnnAutomation_ResetRotatePoints(ByVal automation As AnnAutomation)
   If automation.CanResetRotatePoints Then
      automation.ResetRotatePoints()
   Else
      MessageBox.Show("The rotate control points cannot be reset!")
   End If
End Sub
C#Copy Code
private void AnnAutomation_ResetRotatePoints(AnnAutomation automation) 

   if(automation.CanResetRotatePoints) 
      automation.ResetRotatePoints(); 
   else 
      MessageBox.Show("The rotate control points cannot be reset!"); 
}

Remarks

If displaying rotate control points (see AnnEditDesigner.UseRotateControlPoints), two rotate control points are displayed for a selected AnnObjectBase:

  • Rotate center control point
  • Rotate gripper control point

This method will reset the rotate control points to their default location.

Use the CanResetRotatePoints property to determine whether you can call this method.

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

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