Leadtools.Forms Namespace > LogicalLength Structure : Subtract Method |
public static LogicalLength Subtract( LogicalLength left, LogicalLength right )
'Declaration Public Shared Function Subtract( _ ByVal left As LogicalLength, _ ByVal right As LogicalLength _ ) As LogicalLength
'Usage Dim left As LogicalLength Dim right As LogicalLength Dim value As LogicalLength value = LogicalLength.Subtract(left, right)
public static LogicalLength Subtract( LogicalLength left, LogicalLength right )
public: static LogicalLength Subtract( LogicalLength left, LogicalLength right )
'''This example subtracts two length structures. Public Sub LogicalLength_Subtract() 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.Subtract(lng1, lng2)) MessageBox.Show(s) End Sub
///This example subtracts two length structures. public void LogicalLength_Subtract() { LogicalLength lng1 = new LogicalLength(200, LogicalUnit.Pixel); LogicalLength lng2 = new LogicalLength(1.5F, LogicalUnit.Inch); string s = string.Format("lng1 - lng2 = {0}", LogicalLength.Subtract(lng1, lng2)); 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