Adds the length of one
LogicalLength structure to another
LogicalLength structure.
Syntax
Parameters
- left
-
The LogicalLength on the left side of the add operator.
- right
-
The LogicalLength on the right side of the add operator.
Example
This example adds two length structures.
Visual Basic | Copy Code |
---|
Public Sub LogicalLength_Add()
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}", LogicalLength.Add(lng1, lng2))
MessageBox.Show(s)
End Sub
|
C# | Copy Code |
---|
///This example adds two length structures. public void LogicalLength_Add() { LogicalLength lng1 = new LogicalLength(200, LogicalUnit.Pixel); LogicalLength lng2 = new LogicalLength(1.5F, LogicalUnit.Inch); string s = string.Format("lng1 + lng2 = {0}", LogicalLength.Add(lng1, lng2)); MessageBox.Show(s); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also