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 > LogicalSize Structure : Add Method |
public static LogicalSize Add( LogicalSize size1, LogicalSize size2 )
'Declaration Public Shared Function Add( _ ByVal size1 As LogicalSize, _ ByVal size2 As LogicalSize _ ) As LogicalSize
'Usage Dim size1 As LogicalSize Dim size2 As LogicalSize Dim value As LogicalSize value = LogicalSize.Add(size1, size2)
public: static LogicalSize Add( LogicalSize size1, LogicalSize size2 )
This example adds two size structures.
Imports Leadtools.Forms '''This example adds two size structures. <TestMethod> _ Public Sub LogicalSize_Add() 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}", LogicalSize.Add(sz1, sz2)) MessageBox.Show(s) End Sub
using Leadtools.Forms; ///This example adds two size structures. public void LogicalSize_Add() { LogicalSize sz1 = new LogicalSize(200, 300, LogicalUnit.Pixel); LogicalSize sz2 = new LogicalSize(1.5F, 2f, LogicalUnit.Inch); string s = string.Format("sz1 + sz2 = {0}", LogicalSize.Add(sz1, sz2)); MessageBox.Show(s); }