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

Addition Operator (LogicalPoint)

Example 





Specifies the LogicalPoint.
Specifies the LogicalSize.
Returns a LogicalPoint that results from adding the width and height of a LogicalSize structure to the X and Y coordinates of the LogicalPoint structure, respectively.
Syntax
public LogicalPoint operator +( 
   LogicalPoint point,
   LogicalSize size
)
'Declaration
 
Public Operator +( _
   ByVal point As LogicalPoint, _
   ByVal size As LogicalSize _
) As LogicalPoint
'Usage
 
public LogicalPoint operator +( 
   LogicalPoint point,
   LogicalSize size
)
This operator type is not supported by WinRT JavaScript
public:
LogicalPoint operator +( 
   LogicalPoint point,
   LogicalSize size
)

Parameters

point
Specifies the LogicalPoint.
size
Specifies the LogicalSize.
Remarks
The unit of measurement of the new LogicalPoint is the same as the unit of measurement of the passed LogicalPoint. The X-Coordinate of the new LogicalPoint equals the sum of the X-Coordinate of the passed LogicalPoint and the Width property of the passed LogicalSize, i.e. new X = X + Width. The Y-Coordinate of the new LogicalPoint equals the sum of the Y-Coordinate of the passed LogicalPoint and the Height property of the passed LogicalSize, i.e. new Y = Y + Height.
Example
 
'''This example adds two point structures.
Public Sub LogicalPoint_OperatorPlus()
   Dim sz As LogicalSize = New LogicalSize(2, 3, LogicalUnit.Centimeter)
   Dim pt As LogicalPoint = New LogicalPoint(1.5F, 2f, LogicalUnit.Inch)
   Dim s As String = String.Format("pt + sz = {0}", pt + sz)
   MessageBox.Show(s)
End Sub
///This example adds two point structures.
public void LogicalPoint_OperatorPlus()
{
   LogicalSize sz = new LogicalSize(2, 3, LogicalUnit.Centimeter);
   LogicalPoint pt = new LogicalPoint(1.5F, 2f, LogicalUnit.Inch);
   string s = string.Format("pt + sz = {0}", pt + sz);
   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

LogicalPoint Structure
LogicalPoint 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