Helper method to get the total length of a poly ruler.
public static Leadtools.Annotations.AnnLength GetPolyRulerLength(
Leadtools.RasterCollection<AnnPoint> points,
Leadtools.Annotations.AnnUnit measurementUnit,
Leadtools.Annotations.AnnUnitConverter converter
)
Public Shared Function GetPolyRulerLength( _
ByVal points As Leadtools.RasterCollection(Of AnnPoint), _
ByVal measurementUnit As Leadtools.Annotations.AnnUnit, _
ByVal converter As Leadtools.Annotations.AnnUnitConverter _
) As Leadtools.Annotations.AnnLength
public:
static Leadtools.Annotations.AnnLength GetPolyRulerLength(
Leadtools.RasterCollection<AnnPoint>^ points,
Leadtools.Annotations.AnnUnit measurementUnit,
Leadtools.Annotations.AnnUnitConverter^ converter
)
points
Poly ruler points.
measurementUnit
The desired measurement unit.
converter
Unit converter to use.
An AnnLength object that contains the total length of the poly ruler in the desired measurement units.
GetPolyRulerLength is a helper method that can be used to obtain the total length of a poly ruler object.
using Leadtools;
using Leadtools.Annotations;
using Leadtools.Codecs;
using Leadtools.WinForms;
private void GetPolyRulerLengthExample(AnnContainer container, AnnPolyRulerObject polyRuler)
{
// Get the total length in inches
AnnLength totalLength = AnnPolyRulerObject.GetPolyRulerLength(
polyRuler.Points,
AnnUnit.Inch,
container.UnitConverter);
MessageBox.Show("Total length is " + totalLength.ToString());
}
Imports Leadtools
Imports Leadtools.Annotations
Imports Leadtools.Codecs
Imports Leadtools.WinForms
Private Sub GetPolyRulerLengthExample(ByVal container As AnnContainer, ByVal polyRuler As AnnPolyRulerObject)
' Get the total length in inches
Dim totalLength As AnnLength = AnnPolyRulerObject.GetPolyRulerLength(
polyRuler.Points,
AnnUnit.Inch,
container.UnitConverter)
MessageBox.Show("Total length is " + totalLength.ToString())
End Sub
Products |
Support |
Feedback: GetPolyRulerLength Method - 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.