LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

AnnProtractorObject Class

Example 





Members 
Defines an annotation protractor object.
Object Model
AnnProtractorObject ClassAnnLength StructureAnnRectangle StructureAnnBrush ClassAnnPoint StructureAnnContainer ClassAnnPoint StructureAnnFont ClassAnnLength StructureAnnGroupObject ClassAnnFont ClassAnnPoint StructureAnnPoint StructureAnnPen ClassAnnPoint StructureAnnPoint StructureAnnPoint StructureAnnLength StructureAnnUnitConverter Class
Syntax
Remarks
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.

For more information about the protractor annotation object refer to AnnProtractorObject. For more information about the automated protractor clip annotation object, refer to Annotation Objects - Automated Features and Automated Annotations - Protractor Tab.

Example
 
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
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);
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnProtractorObject Members
Leadtools.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.