Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
CanRotate Property
See Also  Example
Leadtools.Annotations Namespace > AnnAutomation Class : CanRotate Property




Gets a value indicating whether the AnnEditDesignerRotate property can be used at this time.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property CanRotate As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
Dim value As Boolean
 
value = instance.CanRotate
C# 
public virtual bool CanRotate {get;}
Managed Extensions for C++ 
public: __property virtual bool get_CanRotate();
C++/CLI 
public:
virtual property bool CanRotate {
   bool get();
}

Return Value

true if the AnnEditDesignerRotate property can be used at this time; otherwise, false.

Example

This example will toggle the rotate mode of the user interface of the edit designer on and off.

Visual BasicCopy Code
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
C#Copy Code
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 
      } 
   } 
}

Remarks

(Read only) The 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.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features