LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

ResetRotatePoints Method (AnnAutomation)

Example 





Resets the rotate control points of the selected AnnObject to their default location. .NET support Silverlight support
Syntax
public virtual void ResetRotatePoints()
'Declaration
 
Public Overridable Sub ResetRotatePoints() 
'Usage
 
Dim instance As AnnAutomation
 
instance.ResetRotatePoints()
public virtual void ResetRotatePoints()
 function Leadtools.Windows.Annotations.AnnAutomation.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
Copy CodeCopy 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
private void AnnAutomation_ResetRotatePoints(AnnAutomation automation)
{
   if(automation.CanResetRotatePoints)
      automation.ResetRotatePoints();
   else
      MessageBox.Show("The rotate control points cannot be reset!");
}
private void AnnAutomation_ResetRotatePoints(AnnAutomation automation)
{
   if(automation.CanResetRotatePoints)
      automation.ResetRotatePoints();
   else
      MessageBox.Show("The rotate control points cannot be reset!");
}
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

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

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.