C#
VB
C++
Gets or sets a value that represents the length for this LogicalLength.
[DataMemberAttribute(Name="value", Order=0, IsRequired=true)]public double Value { get; set; }
Public Property Value As Double
Value that indicates the length.
This example converts the length value from inch to pixels units.
using Leadtools.Forms;public void LogicalLength_ConvertedValue(){// create a new logical length with value of 1.5 in inchesLogicalLength lng = new LogicalLength(1.5f, LogicalUnit.Inch);string s;// show the lengths = string.Format("Length is {0}", lng);MessageBox.Show(s);// show the length value component converted to pixelss = string.Format("length is {0}, {1} Pixels", lng, LogicalUnitConverter.Convert(lng.Value,LogicalUnit.Inch,150,LogicalUnit.Pixel,150));MessageBox.Show(s);}
Imports Leadtools.FormsPublic Sub LogicalLength_ConvertedValue()' create a new logical length with value of 1.5 in inchesDim lng As LogicalLength = New LogicalLength(1.5F, LogicalUnit.Inch)Dim s As String' show the lengths = String.Format("Length is {0}", lng)MessageBox.Show(s)' show the length value component converted to pixelss = String.Format("length is {0}, {1} Pixels", lng, LogicalUnitConverter.Convert(lng.Value,LogicalUnit.Inch, 150,LogicalUnit.Pixel,150))MessageBox.Show(s)End Sub
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
