←Select platform

ResetRotatePoints Method

Summary

Resets the rotate control points of the selected AnnObject to their default locations.

Syntax

C#
VB
C++
public virtual void ResetRotatePoints() 
  
Public Overridable Sub ResetRotatePoints()  
public: 
virtual void ResetRotatePoints();  

Remarks

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

  • Rotate center control point
  • Rotate gripper control point

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

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

For more information, refer to New Annotation Features of Version 14.5 (Deprecated).

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
    C#
    VB
    using Leadtools; 
    using Leadtools.Annotations; 
    using Leadtools.WinForms; 
    using Leadtools.Drawing; 
     
    public void AnnAutomation_ResetRotatePoints(AnnAutomation automation) 
    { 
       if (automation.CanResetRotatePoints) 
          automation.ResetRotatePoints(); 
       else 
          MessageBox.Show("The rotate control points cannot be reset!"); 
    } 
    Imports Leadtools 
    Imports Leadtools.Annotations 
    Imports Leadtools.WinForms 
    Imports Leadtools.Drawing 
     
    Public 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 
Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations Assembly