Defines an annotation protractor object.
[SerializableAttribute()]
public class AnnProtractorObject : Leadtools.Annotations.AnnObject, Leadtools.Annotations.IAnnProtractorObject, Leadtools.Annotations.IAnnRulerObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
<SerializableAttribute()>
Public Class AnnProtractorObject
Inherits Leadtools.Annotations.AnnObject
Implements Leadtools.Annotations.IAnnProtractorObject, Leadtools.Annotations.IAnnRulerObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
[SerializableAttribute()]
public ref class AnnProtractorObject : public Leadtools.Annotations.AnnObject, Leadtools.Annotations.IAnnProtractorObject, Leadtools.Annotations.IAnnRulerObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
The protractor annotation object consists of two rulers joined at a point to create an angle. The center point is CenterPoint, the first line ends at FirstPoint and the second point ends at SecondPoint. For more information, refer to Using Protractors in Annotation Objects. (Deprecated) For more information about the protractor annotation object refer to AnnProtractorObject (Deprecated). For more information about the automated protractor clip annotation object, refer to Annotation Objects - Automated Features (Deprecated) and Automated Annotations - Protractor Tab (Deprecated).
This example creates a new protractor object.
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;
private void AnnProtractorObject_AnnProtractorObject(AnnContainer container)
{
AnnProtractorObject protractor = new AnnProtractorObject();
protractor.Pen = new AnnPen(Color.Green, new AnnLength(3));
protractor.CenterPoint = new AnnPoint(10.0F, 4.5F, AnnUnit.Inch);
protractor.FirstPoint = new AnnPoint(5.0F, 20.0F, AnnUnit.Inch);
protractor.SecondPoint = new AnnPoint(20.56F, 40.3F, AnnUnit.Inch);
protractor.MeasurementUnit = AnnUnit.SmartEnglish;
protractor.TickMarksLength = new AnnLength(0.5F, AnnUnit.Inch);
protractor.ShowTickMarks = true;
protractor.GaugeLength = new AnnLength(1.0F, AnnUnit.Inch);
protractor.ShowGauge = true;
protractor.ShowLength = true;
protractor.Precision = 2;
protractor.AngularUnit = AnnAngularUnit.Degree;
protractor.Acute = true;
protractor.AnglePrecision = 2;
protractor.ArcRadius = new AnnLength(0.5F, AnnUnit.Inch);
container.Objects.Add(protractor);
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms
Private Sub AnnProtractorObject_AnnProtractorObject(ByVal container As AnnContainer)
Dim protractor As AnnProtractorObject = New AnnProtractorObject()
protractor.Pen = New AnnPen(Color.Green, New AnnLength(3))
protractor.CenterPoint = New AnnPoint(10.0F, 4.5F, AnnUnit.Inch)
protractor.FirstPoint = New AnnPoint(5.0F, 20.0F, AnnUnit.Inch)
protractor.SecondPoint = New AnnPoint(20.56F, 40.3F, AnnUnit.Inch)
protractor.MeasurementUnit = AnnUnit.SmartEnglish
protractor.TickMarksLength = New AnnLength(0.5F, AnnUnit.Inch)
protractor.ShowTickMarks = True
protractor.GaugeLength = New AnnLength(1.0F, AnnUnit.Inch)
protractor.ShowGauge = True
protractor.ShowLength = True
protractor.Precision = 2
protractor.AngularUnit = AnnAngularUnit.Degree
protractor.Acute = True
protractor.AnglePrecision = 2
protractor.ArcRadius = New AnnLength(0.5F, AnnUnit.Inch)
container.Objects.Add(protractor)
End Sub
Products |
Support |
Feedback: AnnProtractorObject Class - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|
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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.