←Select platform

Addition Operator

Summary

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

Syntax

C#
VB
C++
public static LogicalLength operator +( 
   LogicalLength left, 
   LogicalLength right 
) 
  
Public Operator +( _ 
   ByVal left As Leadtools.Forms.LogicalLength, _ 
   ByVal right As Leadtools.Forms.LogicalLength _ 
) As Leadtools.Forms.LogicalLength 

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 left unit.

Example

This example adds two length structures.

C#
VB
using Leadtools.Forms; 
 
///This example adds two length structures. 
public void LogicalLength_OperatorPlus() 
{ 
   LogicalLength lng1 = new LogicalLength(200, LogicalUnit.Pixel); 
   LogicalLength lng2 = new LogicalLength(1.5F, LogicalUnit.Inch); 
   string s = string.Format("lng1 + lng2 = {0}", lng1 + lng2); 
   MessageBox.Show(s); 
} 
Imports Leadtools.Forms 
 
'''This example adds two length structures. 
Public Sub LogicalLength_OperatorPlus() 
   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}", lng1 + lng2) 
   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.Forms Assembly