Products | Support | Back to Introduction | Email a link to this topic. | Back to Introduction - All Topics | Help Version 19.0.4.12
|
Leadtools.Forms Namespace > LogicalLength Structure : Addition Operator |
public LogicalLength operator +( LogicalLength left, LogicalLength right )
'Declaration Public Operator +( _ ByVal left As LogicalLength, _ ByVal right As LogicalLength _ ) As LogicalLength
'Usage
public: LogicalLength operator +( LogicalLength left, LogicalLength right )
This example adds two length structures.
Imports Leadtools.Forms '''This example adds two length structures. <TestMethod> _ 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
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); }