←Select platform

Addition Operator

Summary

Adds the width and height of the specified LogicalSize object to this LogicalSize structure.

Syntax

C#
VB
C++
public static LogicalSize operator +( 
   LogicalSize size1, 
   LogicalSize size2 
) 
  
Public Operator +( _ 
   ByVal size1 As Leadtools.Forms.LogicalSize, _ 
   ByVal size2 As Leadtools.Forms.LogicalSize _ 
) As Leadtools.Forms.LogicalSize 

Parameters

size1
The first LogicalSize being added.

size2
The second LogicalSize being added.

Remarks

The addition will be done based on size1 unit.

Example

This example adds two size structures.

C#
VB
using Leadtools.Forms; 
 
///This example adds two size structures. 
public void LogicalSize_OperatorPlus() 
{ 
   LogicalSize sz1 = new LogicalSize(200, 300, LogicalUnit.Pixel); 
   LogicalSize sz2 = new LogicalSize(1.5F, 2f, LogicalUnit.Inch); 
   string s = string.Format("sz1 + sz2 = {0}", sz1 + sz2); 
   MessageBox.Show(s); 
} 
Imports Leadtools.Forms 
 
'''This example adds two size structures. 
Public Sub LogicalSize_OperatorPlus() 
   Dim sz1 As LogicalSize = New LogicalSize(200, 300, LogicalUnit.Pixel) 
   Dim sz2 As LogicalSize = New LogicalSize(1.5F, 2.0F, LogicalUnit.Inch) 
   Dim s As String = String.Format("sz1 + sz2 = {0}", sz1 + sz2) 
   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