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 > AnnObject Class : CalculateRotateAngle Method |
public virtual float CalculateRotateAngle()
'Declaration Public Overridable Function CalculateRotateAngle() As Single
public: virtual float CalculateRotateAngle();
This example displays the rotate angle of an AnnObject.
Imports Leadtools Imports Leadtools.Annotations Imports Leadtools.Codecs Imports Leadtools.WinForms Imports Leadtools.Drawing Public Sub AnnObject_CalculateRotateAngle(ByVal obj As AnnObject) Dim angle As Single = obj.CalculateRotateAngle() Dim s As String = String.Format("The selected {0} has a rotate angle of {1}", obj.GetType().ToString(), angle) MessageBox.Show(s) End Sub
using Leadtools; using Leadtools.Annotations; using Leadtools.Codecs; using Leadtools.WinForms; using Leadtools.Drawing; public void AnnObject_CalculateRotateAngle(AnnObject obj) { float angle = obj.CalculateRotateAngle(); string s = string.Format("The selected {0} has a rotate angle of {1}", obj.GetType().ToString(), angle); MessageBox.Show(s); }