Gets a value indicating whether the AnnEditDesigner Rotate property can be used at this time.
public virtual bool CanRotate { get; }
Public Overridable ReadOnly Property CanRotate As Boolean
public:
virtual property bool CanRotate {
bool get();
}
true if the AnnEditDesignerAnnEditDesigner.Rotate property can be used at this time; otherwise, false.
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.
This example will toggle the rotate mode of the user interface of the edit designer on and off.
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
}
}
}
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
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET