Error processing SSI file
LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)

Show in webframe

ResetRotatePoints Method (AnnAutomation)






Resets the rotate control points of the selected AnnObject to their default location.
Syntax
public virtual void ResetRotatePoints()
'Declaration
 
Public Overridable Sub ResetRotatePoints() 
'Usage
 
Dim instance As AnnAutomation
 
instance.ResetRotatePoints()

            

            
public:
virtual void ResetRotatePoints(); 
Remarks

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

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.

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
Copy Code  
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations

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
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;

private void AnnAutomation_ResetRotatePoints(AnnAutomation automation)
{
   if(automation.CanResetRotatePoints)
      automation.ResetRotatePoints();
   else
      MessageBox.Show("The rotate control points cannot be reset!");
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
using Leadtools.Silverlight.Demos;

private void AnnAutomation_ResetRotatePoints(AnnAutomation automation)
{
   if(automation.CanResetRotatePoints)
      automation.ResetRotatePoints();
   else
      MessageBox.Show("The rotate control points cannot be reset!");
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Imports Leadtools.Silverlight.Demos

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
Requirements

Target Platforms

See Also

Reference

AnnAutomation Class
AnnAutomation Members
CanResetRotatePoints Property
UseRotateControlPoints Property
CanResetRotatePoints Property
UseRotateControlPoints Property

Error processing SSI file
   Leadtools.Windows.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features