Leadtools.Forms Namespace > LogicalPoint Structure : Add Method |
public static LogicalPoint Add( LogicalPoint point, LogicalSize size )
'Declaration Public Shared Function Add( _ ByVal point As LogicalPoint, _ ByVal size As LogicalSize _ ) As LogicalPoint
'Usage Dim point As LogicalPoint Dim size As LogicalSize Dim value As LogicalPoint value = LogicalPoint.Add(point, size)
public static LogicalPoint Add( LogicalPoint point, LogicalSize size )
public: static LogicalPoint Add( LogicalPoint point, LogicalSize size )
'''This example adds two point structures. Public Sub LogicalPoint_Add() Dim sz As LogicalSize = New LogicalSize(2, 3, LogicalUnit.Centimeter) Dim pt As LogicalPoint = New LogicalPoint(1.5F, 2f, LogicalUnit.Inch) Dim s As String = String.Format("pt + sz = {0}", LogicalPoint.Add(pt, sz)) MessageBox.Show(s) End Sub
///This example adds two point structures. public void LogicalPoint_Add() { LogicalSize sz = new LogicalSize(2, 3, LogicalUnit.Centimeter); LogicalPoint pt = new LogicalPoint(1.5F, 2f, LogicalUnit.Inch); string s = string.Format("pt + sz = {0}", LogicalPoint.Add(pt, sz)); MessageBox.Show(s); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2