Leadtools.Forms Namespace > LogicalSize Structure : Subtract Method |
public static LogicalSize Subtract( LogicalSize size1, LogicalSize size2 )
'Declaration Public Shared Function Subtract( _ 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.Subtract(size1, size2)
public static LogicalSize Subtract( LogicalSize size1, LogicalSize size2 )
public: static LogicalSize Subtract( LogicalSize size1, LogicalSize size2 )
'''This example subtracts two size structures. Public Sub LogicalSize_Subtract() Dim sz1 As LogicalSize = New LogicalSize(200, 300, LogicalUnit.Pixel) Dim sz2 As LogicalSize = New LogicalSize(1.5F, 2f, LogicalUnit.Inch) Dim s As String = String.Format("sz1 - sz2 = {0}", LogicalSize.Subtract(sz1,sz2)) MessageBox.Show(s) End Sub
///This example subtracts two size structures. public void LogicalSize_Subtract() { 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.Subtract(sz1,sz2)); 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