LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

CanRotate Property

Example 





Gets a value indicating whether the AnnEditDesigner Rotate property can be used at this time.
Syntax
public virtual bool CanRotate {get;}
'Declaration
 
Public Overridable ReadOnly Property CanRotate As Boolean
'Usage
 
Dim instance As AnnAutomation
Dim value As Boolean
 
value = instance.CanRotate
public virtual bool CanRotate {get;}
 get_CanRotate(); 
public:
virtual property bool CanRotate {
   bool get();
}

Property Value

true if the AnnEditDesignerAnnEditDesigner.Rotate property can be used at this time; otherwise, false.
Remarks
The AnnEditDesigner.Rotate property is used to switch the user interface of the AnnEditDesigner into rotate mode. The CanRotate property gets a value that indicates whether the current designer is an AnnEditDesigner. Call the Rotate method to switch the rotation mode of the edit designer on and off. Please note that the AnnEncryptObject object does not support rotation.
Example
 
Public Sub AnnAutomation_CanRotate(ByVal automation As AnnAutomation)
   ' check whether we can use the rotate mode at this time
   If automation.CanRotate Then
      If automation.Rotate Then
         automation.Rotate = False
         ' now clicking and dragging on the cobject currently being edited will move it
      Else
         automation.Rotate = True
         ' now clicking and dragging on the object currently being edited will rotate it
      End If
   End If
End Sub
public void AnnAutomation_CanRotate(AnnAutomation automation)
{
   // check whether we can use the rotate mode at this time
   if(automation.CanRotate)
   {
      if(automation.Rotate)
      {
         automation.Rotate = false;
         // now clicking and dragging on the cobject currently being edited will move it
      }
      else
      {
         automation.Rotate = true;
         // now clicking and dragging on the object currently being edited will rotate it
      }
   }
}
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

 

 


Products | Support | Contact Us | Copyright Notices

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