Defines an annotation cross product object.
[SerializableAttribute()]
public class AnnCrossProductObject : Leadtools.Annotations.AnnObject, Leadtools.Annotations.IAnnRulerObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
<SerializableAttribute()>
Public Class AnnCrossProductObject
Inherits Leadtools.Annotations.AnnObject
Implements Leadtools.Annotations.IAnnRulerObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
[SerializableAttribute()]
public ref class AnnCrossProductObject : public Leadtools.Annotations.AnnObject, Leadtools.Annotations.IAnnRulerObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable
The cross-product annotation object consists of two rulers intersecting at right angles. The intersection point of a cross product object updates dynamically and can be obtained through the IntersectionPoint property.
For more information about the crossproduct annotation object refer to AnnCrossProductObject (Deprecated). For more information about the automated crossproduct annotation object, refer to Annotation Objects - Automated Features (Deprecated).
This example creates a cross product object.
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;
private void AnnCrossProductObject_AnnCrossProductObject(AnnContainer container)
{
AnnCrossProductObject crossProduct = new AnnCrossProductObject();
crossProduct.Pen = new AnnPen(Color.Red, new AnnLength(1, AnnUnit.Pixel));
crossProduct.Font = new AnnFont("Arial", new AnnLength(10, AnnUnit.Point), FontStyle.Regular);
crossProduct.FirstStartPoint = new AnnPoint(5, 5, AnnUnit.Inch);
crossProduct.FirstEndPoint = new AnnPoint(10, 10, AnnUnit.Inch);
// make this cross product symmetrical
crossProduct.UpdateSecondPoints();
// update the intersection point
crossProduct.UpdateIntersectionPoint();
crossProduct.MeasurementUnit = AnnUnit.Inch;
crossProduct.TickMarksLength = new AnnLength(0.25F, AnnUnit.Inch);
crossProduct.ShowTickMarks = true;
crossProduct.GaugeLength = new AnnLength(1.0F, AnnUnit.Inch);
crossProduct.ShowGauge = true;
crossProduct.ShowLength = true;
crossProduct.Precision = 2;
container.Objects.Add(crossProduct);
// show the intersection point
MessageBox.Show(String.Format("Intersection point is at: {0}", crossProduct.IntersectionPoint));
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms
Private Sub AnnCrossProductObject_AnnCrossProductObject(ByVal container As AnnContainer)
Dim crossProduct As AnnCrossProductObject = New AnnCrossProductObject()
crossProduct.Pen = New AnnPen(Color.Red, New AnnLength(1, AnnUnit.Pixel))
crossProduct.Font = New AnnFont("Arial", New AnnLength(10, AnnUnit.Point), FontStyle.Regular)
crossProduct.FirstStartPoint = New AnnPoint(5, 5, AnnUnit.Inch)
crossProduct.FirstEndPoint = New AnnPoint(10, 10, AnnUnit.Inch)
' make this cross product symmetrical
crossProduct.UpdateSecondPoints()
' update the intersection point
crossProduct.UpdateIntersectionPoint()
crossProduct.MeasurementUnit = AnnUnit.Inch
crossProduct.TickMarksLength = New AnnLength(0.25F, AnnUnit.Inch)
crossProduct.ShowTickMarks = True
crossProduct.GaugeLength = New AnnLength(1.0F, AnnUnit.Inch)
crossProduct.ShowGauge = True
crossProduct.ShowLength = True
crossProduct.Precision = 2
container.Objects.Add(crossProduct)
' show the intersection point
MessageBox.Show(String.Format("Intersection point is at: {0}", crossProduct.IntersectionPoint))
End Sub
Products |
Support |
Feedback: AnnCrossProductObject 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.