|
Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.2
|
| Leadtools.Annotations Namespace > AnnAutomation Class : CanRotate Property |
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
This example will toggle the rotate mode of the user interface of the edit designer on and off.
Copy Code
Imports Leadtools Imports Leadtools.Annotations Imports Leadtools.WinForms Imports Leadtools.Drawing 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
using Leadtools; using Leadtools.Annotations; using Leadtools.WinForms; using Leadtools.Drawing; 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 } } }