This class extends the AnnDrawDesigner class to provide functionality for drawing an AnnCrossProductObject on an annotation container.
[SerializableAttribute()]
public class AnnCrossProductDrawDesigner : Leadtools.Annotations.AnnDrawDesigner
<SerializableAttribute()>
Public Class AnnCrossProductDrawDesigner
Inherits Leadtools.Annotations.AnnDrawDesigner
[SerializableAttribute()]
public ref class AnnCrossProductDrawDesigner : public Leadtools.Annotations.AnnDrawDesigner
For a complete example on how to use annotation draw and edit designers, refer to AnnDesigner.
This example initializes a new designer to draw cross-product objects
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;
public AnnCrossProductDrawDesigner AnnCrossProductDrawDesigner_AnnCrossProductDrawDesigner(RasterImageViewer viewer, AnnContainer container)
{
// start a new cross-product draw designer
AnnCrossProductDrawDesigner crossProductDrawDesigner = new AnnCrossProductDrawDesigner();
// set up the object template (the cross product)
AnnCrossProductObject crossProduct = new AnnCrossProductObject();
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;
// initialize the rest of the designer
crossProductDrawDesigner.ObjectTemplate = crossProduct;
crossProductDrawDesigner.Owner = viewer;
crossProductDrawDesigner.ClipCursor = true;
crossProductDrawDesigner.Container = container;
return crossProductDrawDesigner;
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms
Public Function AnnCrossProductDrawDesigner_AnnCrossProductDrawDesigner(ByVal viewer As RasterImageViewer, ByVal container As AnnContainer) As AnnCrossProductDrawDesigner
' start a new cross-product draw designer
Dim crossProductDrawDesigner As AnnCrossProductDrawDesigner = New AnnCrossProductDrawDesigner()
' set up the object template (the cross product)
Dim crossProduct As AnnCrossProductObject = New AnnCrossProductObject()
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
' initialize the rest of the designer
crossProductDrawDesigner.ObjectTemplate = crossProduct
crossProductDrawDesigner.Owner = viewer
crossProductDrawDesigner.ClipCursor = True
crossProductDrawDesigner.Container = container
Return crossProductDrawDesigner
End Function
Products |
Support |
Feedback: AnnCrossProductDrawDesigner 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.