The CanRotate Property is available in LEADTOOLS Document and Medical Imaging toolkits.
Gets a value indicating whether the
AnnEditDesignerAnnEditDesigner.Rotate 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;} |
C++/CLI | |
---|
public:
virtual property bool CanRotate {
bool get();
} |
Property Value
true if the
AnnEditDesignerAnnEditDesigner.Rotate 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 Basic | Copy 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
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also