LEADTOOLS Forms (Leadtools.Forms assembly)

Show in webframe

Subtraction Operator (LogicalLength)






The LogicalLength on the left side of the subtract operator.
The LogicalLength on the right side of the subtract operator.
Subtracts the length of the specified LogicalLength object from this LogicalLength structure.
Syntax
public LogicalLength operator -( 
   LogicalLength left,
   LogicalLength right
)
'Declaration
 
Public Operator -( _
   ByVal left As LogicalLength, _
   ByVal right As LogicalLength _
) As LogicalLength
'Usage
 

            

            
public:
LogicalLength operator -( 
   LogicalLength left,
   LogicalLength right
)

Parameters

left
The LogicalLength on the left side of the subtract operator.
right
The LogicalLength on the right side of the subtract operator.
Remarks
The subtraction will be done based on the left unit.
Example

This example subtracts two length structures.

Copy Code  
Imports Leadtools.Forms

'''This example subtracts two length structures.
<TestMethod> _
Public Sub LogicalLength_OperatorMinus()
   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}", lng1 - lng2)
   MessageBox.Show(s)
End Sub
using Leadtools.Forms;

///This example subtracts two length structures.
public void LogicalLength_OperatorMinus()
{
   LogicalLength lng1 = new LogicalLength(200, LogicalUnit.Pixel);
   LogicalLength lng2 = new LogicalLength(1.5F, LogicalUnit.Inch);
   string s = string.Format("lng1 - lng2 = {0}", lng1 - lng2);
   MessageBox.Show(s); 
}
Requirements

Target Platforms

See Also

Reference

LogicalLength Structure
LogicalLength Members

Error processing SSI file
Leadtools.Forms requires a Forms Module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features