The ResetRotatePoints Method supports WPF/Silverlight.
The ResetRotatePoints Method is available in LEADTOOLS Document and Medical Imaging toolkits.
Resets the rotate control points of the selected AnnObject to their default location. Supported in Silverlight, Windows Phone 7Visual Basic (Declaration) | |
---|---|
Public Overridable Sub ResetRotatePoints() |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As AnnAutomation instance.ResetRotatePoints() |
C# | |
---|---|
public virtual void ResetRotatePoints() |
C++/CLI | |
---|---|
public: virtual void ResetRotatePoints(); |
This example determines if the rotate control points can be reset to the default location. For CanResetRotatePoints to be true the following must hold:
- An AnnObject must be selected and
- UseRotateControlPoints must be true
Visual Basic | ![]() |
---|---|
Private Sub AnnAutomation_ResetRotatePoints(ByVal automation As AnnAutomation) If automation.CanResetRotatePoints Then automation.ResetRotatePoints() Else MessageBox.Show("The rotate control points cannot be reset!") End If End Sub |
C# | ![]() |
---|---|
private void AnnAutomation_ResetRotatePoints(AnnAutomation automation) { if(automation.CanResetRotatePoints) automation.ResetRotatePoints(); else MessageBox.Show("The rotate control points cannot be reset!"); } |
SilverlightCSharp | ![]() |
---|---|
private void AnnAutomation_ResetRotatePoints(AnnAutomation automation) { if(automation.CanResetRotatePoints) automation.ResetRotatePoints(); else MessageBox.Show("The rotate control points cannot be reset!"); } |
SilverlightVB | ![]() |
---|---|
Private Sub AnnAutomation_ResetRotatePoints(ByVal automation As AnnAutomation)
If automation.CanResetRotatePoints Then
automation.ResetRotatePoints()
Else
MessageBox.Show("The rotate control points cannot be reset!")
End If
End Sub |
If displaying rotate control points (see AnnEditDesigner.UseRotateControlPoints), two rotate control points are displayed for a selected AnnObject:
- Rotate center control point
- Rotate gripper control point
This method will reset the rotate control points to their default location.
Use the CanResetRotatePoints property to determine whether you can call this method.
For more information, refer to WPF Annotation Rotation Options.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)