←Select platform

Addition Operator

Summary

Adds the length of one AnnLength structure to another AnnLength structure.

Syntax

C#
VB
C++
public static AnnLength operator +( 
   AnnLength l1, 
   AnnLength l2 
) 
  
Public Operator +( _ 
   ByVal l1 As Leadtools.Annotations.AnnLength, _ 
   ByVal l2 As Leadtools.Annotations.AnnLength _ 
) As Leadtools.Annotations.AnnLength 

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

This example adds two lengths together.

C#
VB
using Leadtools; 
using Leadtools.Annotations; 
using Leadtools.Codecs; 
using Leadtools.WinForms; 
 
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); 
} 
Imports Leadtools 
Imports Leadtools.Annotations 
Imports Leadtools.Codecs 
Imports Leadtools.WinForms 
 
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 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations Assembly