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

Add Method (LogicalLength)

Example 





The LogicalLength on the left side of the add operator.
The LogicalLength on the right side of the add operator.
Adds the length of one LogicalLength structure to another LogicalLength structure.
Syntax
public static LogicalLength Add( 
   LogicalLength left,
   LogicalLength right
)
'Declaration
 
Public Shared Function Add( _
   ByVal left As LogicalLength, _
   ByVal right As LogicalLength _
) As LogicalLength
'Usage
 
Dim left As LogicalLength
Dim right As LogicalLength
Dim value As LogicalLength
 
value = LogicalLength.Add(left, right)
public static LogicalLength Add( 
   LogicalLength left,
   LogicalLength right
)
 function Leadtools.Forms.LogicalLength.Add( 
   left ,
   right 
)
public:
static LogicalLength Add( 
   LogicalLength left,
   LogicalLength right
) 

Parameters

left
The LogicalLength on the left side of the add operator.
right
The LogicalLength on the right side of the add operator.
Remarks
The addition will be done based on the left unit.
Example
 
'''This example adds two length structures.
Public Sub LogicalLength_Add()
   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.Add(lng1, lng2))
   MessageBox.Show(s)
End Sub
///This example adds two length structures.
public void LogicalLength_Add()
{
   LogicalLength lng1 = new LogicalLength(200, LogicalUnit.Pixel);
   LogicalLength lng2 = new LogicalLength(1.5F, LogicalUnit.Inch);
   string s = string.Format("lng1 + lng2 = {0}", LogicalLength.Add(lng1, lng2));
   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

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