LEADTOOLS Forms (Leadtools.Forms assembly)
LEAD Technologies, Inc

Subtraction Operator (LogicalSize)

Example 





The first LogicalSize on the left side of the subtraction operator.
The second LogicalSize on the right side of the subtraction operator.
Subtracts the width and height of the specified LogicalSize object from this LogicalSize structure.
Syntax
public LogicalSize operator -( 
   LogicalSize size1,
   LogicalSize size2
)
'Declaration
 
Public Operator -( _
   ByVal size1 As LogicalSize, _
   ByVal size2 As LogicalSize _
) As LogicalSize
'Usage
 
public LogicalSize operator -( 
   LogicalSize size1,
   LogicalSize size2
)
This operator type is not supported by WinRT JavaScript
public:
LogicalSize operator -( 
   LogicalSize size1,
   LogicalSize size2
)

Parameters

size1
The first LogicalSize on the left side of the subtraction operator.
size2
The second LogicalSize on the right side of the subtraction operator.
Remarks
The subtraction will be done based on size1 unit.
Example
 
'''This example subtracts two size structures.
Public Sub LogicalSize_OperatorMinus()
   Dim sz1 As LogicalSize = New LogicalSize(200, 300, LogicalUnit.Pixel)
   Dim sz2 As LogicalSize = New LogicalSize(1.5F, 2f, LogicalUnit.Inch)
   Dim s As String = String.Format("sz1 - sz2 = {0}", sz1 - sz2)
   MessageBox.Show(s)
End Sub
///This example subtracts two size structures.
public void LogicalSize_OperatorMinus()
{
   LogicalSize sz1 = new LogicalSize(200, 300, LogicalUnit.Pixel);
   LogicalSize sz2 = new LogicalSize(1.5F, 2f, LogicalUnit.Inch);
   string s = string.Format("sz1 - sz2 = {0}", sz1 - sz2);
   MessageBox.Show(s); 
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

LogicalSize Structure
LogicalSize Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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