Imports Leadtools.Forms
Private Sub LogicalLength_LogicalLength()
' create a new logical length that is 1.5 inches
Dim lng As LogicalLength = New LogicalLength(1.5f, LogicalUnit.Inch)
' show the length
Dim s As String = String.Format("{0}", lng)
MessageBox.Show(s)
' convert the length to pixels
lng.Convert(150, LogicalUnit.Pixel, 150)
' show
s = String.Format("{0}", lng)
MessageBox.Show(s)
End Sub
using Leadtools.Forms;
private void LogicalLength_LogicalLength()
{
// create a new logical length that is 1.5 inches
LogicalLength lng = new LogicalLength(1.5f, LogicalUnit.Inch);
// show the length
string s = string.Format("{0}", lng);
MessageBox.Show(s);
// convert the length to pixels
lng.Convert(150, LogicalUnit.Pixel, 150);
// show
s = string.Format("{0}", lng);
MessageBox.Show(s);
}