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

Addition Operator (AnnLength)

Example 





The first AnnLength being added.
The second AnnLength structure being added.
Adds the length of one AnnLength structure to another AnnLength structure.
Syntax
public AnnLength operator +( 
   AnnLength l1,
   AnnLength l2
)
'Declaration
 
Public Operator +( _
   ByVal l1 As AnnLength, _
   ByVal l2 As AnnLength _
) As AnnLength
'Usage
 
public AnnLength operator +( 
   AnnLength l1,
   AnnLength l2
)
This operator type is not supported by WinRT JavaScript
public:
AnnLength operator +( 
   AnnLength l1,
   AnnLength l2
)

Parameters

l1
The first AnnLength being added.
l2
The second AnnLength structure being added.

Return Value

An AnnLength structure that is the result of the addition.
Example
 
Public Sub AnnLength_OperatorPlus()
   Dim ln1 As AnnLength = New AnnLength(1.5F, AnnUnit.Inch)
   Dim ln2 As AnnLength = New AnnLength(2.0F, AnnUnit.Inch)
   Dim s As String = String.Format("ln1 + ln2 = {0}", ln1 + ln2)
   MessageBox.Show(s)
End Sub
public void AnnLength_OperatorPlus()
{
   AnnLength ln1 = new AnnLength(1.5F, AnnUnit.Inch);
   AnnLength ln2 = new AnnLength(2.0F, AnnUnit.Inch);
   string s = string.Format("ln1 + ln2 = {0}", ln1 + ln2);
   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

AnnLength Structure
AnnLength Members

 

 


Products | Support | Contact Us | Copyright Notices

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