Subtract Method
Syntax
Parameters
left
The LogicalLength on the left side of the subtraction operator.
right
The LogicalLength on the right side of the subtraction operator.
Example
This example subtracts two length structures.
using Leadtools.Forms;
///This example subtracts two length structures.
public void LogicalLength_Subtract()
{
LogicalLength lng1 = new LogicalLength(200, LogicalUnit.Pixel);
LogicalLength lng2 = new LogicalLength(1.5F, LogicalUnit.Inch);
string s = string.Format("lng1 - lng2 = {0}", LogicalLength.Subtract(lng1, lng2));
MessageBox.Show(s);
}
Imports Leadtools.Forms
'''This example subtracts two length structures.
Public Sub LogicalLength_Subtract()
Dim lng1 As LogicalLength = New LogicalLength(200, LogicalUnit.Pixel)
Dim lng2 As LogicalLength = New LogicalLength(1.5F, LogicalUnit.Inch)
Dim s As String = String.Format("lng1 - lng2 = {0}", LogicalLength.Subtract(lng1, lng2))
MessageBox.Show(s)
End Sub